When i try to edit saves of pokemon sun i have absolutly no problem. If i do the same things with pokemon y, the files are ALWAYS corrupted; even if i just open the same file and export it just like it is without doing anything. I also tried to turn off all the cheats but it doesn't change anything (but, i repeat, with pokemon sun i didn't have any problems with any tipe of edit with any cheat turned on).
I have Citra and PKHeX with the latest version (I think, i just updated citra, litteraly 1 hour ago, and yes, i also tried to start a new game but the problems still persist; i also downloaded PKHeX yesterday so it has to be the latest version).
Is it a problem with the pokemon y original game's file? Should i delate it and download another file from another site?
(I'm sorry if i made some grammal mistake, i'm italian)