What is the meaning of Lose_one's_head?

To be killed, usually in a gruesome manner.

To suffer decapitation.

To behave irrationally or to lose one's self-control, especially in a distressing situation or as a result of falling in love.

To be dismissed from a job.

Source: wiktionary.org