perder un tornillo

Etymology
lit. 'lose a screw'.

Verb

 * 1)  to lose one's mind