lose it [informal]
to become extremely angry or upset
I completely lost it. I went mad, berserk. I was shouting and swearing.
to become unable to do something you are usually able to do
He walked on stage, looked out into the audience and just lost it. He forgot the words and started to make up completely different ones.
Easy Learning Idioms Dictionary. Copyright © HarperCollins Publishers