Ergodic mean field games: existence of local minimizers up to the Sobolev critical case | Synapse