I had the exact same issue.
Unfortunately, you’ll probably need to start a new save and avoid using any codes that modify Pokémon data — especially ones that change Nature, IVs, or force Shiny Pokémon.
In my case, even after catching new Pokémon without cheats, the game still wouldn’t trigger...