Help , anyone

Hey , I’m having a problem where I purposely failed the Zygarde fight at the dragon ruins to buy more pokeballs and when i came back and the game keeps freezing everytime i try to fight him again help please i can’t do anything in my game until this is fixed