When I defeat the elite four my data always get corrupted but before that point it works fine.It cant be the battery surely bcuz its fine till then.I tried this 4 times. PS game is new can anyone help?

mabe they sold you a bad one because when I got a game before it was all scewed up now, then I went back and demanded for a new one.