Another one... so many bad carts!
Since this has happened numerous times, I figured I'd automate the logic that I'd do manually, as described in the thread chain ^.
The automated program and its source code have been uploaded to projectpokemon's GitHub: https://github.com/projectpokemon/RecoverSaveGen3
I have attached the save file after running it through the program I made ^. Here's what it looks like in PKHeX (box names???)
POKEMON EMER_BPEE01_00.sav.fixed