Dimension of the minimum set for the real and complex Monge-Amp\`{e}re equations in critical Sobolev spaces