I've probably lost your interest entirely at this point, but can you tell me more about what you were doing right before the bugs happened?
The "Script Sprite_Battler line 80: TypeError occurred. no implicit conversion from nil to integer" bug used to happen when you removed a character from your party and didn't replace them with a new member. I thought I'd fixed it, but perhaps not. Someone else got around the bug by always having the max number of members in the active party.
The other bug happened once when the timer ran out as a boss battle was being finished, and for some reason it caused the player to be caught in a loop like that.
How does that compare to what you experienced?