perdersi d'animo

Etymology
lit. 'to lose [of] one's soul'.

Verb

 * 1) to lose heart