Lose it
verb
To become explosively angry; to lose one's temper.
“When my dad found out I had failed the exams, he just lost it.”
To begin to laugh uncontrollably.
“When the teacher's chair broke, the class completely lost it.”
To lose one's mind, go crazy.
Synonyms: blow one's top, freak out, go ape, go apeshit, go snake, hit the ceiling, hit the roof, lose one's rag