Game freezes computer randomly

The game will randomly freeze and it only happens during battles. I’ve tried different settings and reinstalling the game, but I don’t know how to fix it. I get 300 plus frames, and have no idea why it does it or how to fix it. I’ve made sure my drivers are updated, but that didn’t fix it.