"Lose it" generally means to lose your composure or to be unruly. It can also mean 'go insane,' although that is usually used in a joking manner.
When Jack proposed to Sarah she totally lost it.
When Steve gets angry he always loses it.
Jill danced around with a lampshade on her head, and all her friends thought she'd lost it.
Hope that helps!
Student or Learner