What caused Gamzee to go insane (again) right before Game Over? Aranea didn't have control over him anymore, and he seemed somewhat sane when he addressed Terezi.

Gamzee is just a terrible person, he didn’t “go insane” he’s just awful and was acting even worse than usual because he was pissed off that Aranea was mind controlling him.