That means that something something the emulator isn’t reading the save right or you aren’t restoring it right.
If the save is fully corrupt, chances are PKHeX won’t read it. If you wanna be sure, after opening up the edited save in PKHeX, make some kind of change (maybe give yourself an item), then export that newly edited save from PKHeX, then insert into your emu.