I figured out what the problem is! The problem is that if you have your entire party in the battle, and they all die, it instantly game overs you. I added a new character to the group and left them out of the battle and it works fine.
Still bizarre. But thanks for the info.