met de handen in het haar zitten

Etymology
Literally, “to be (or sit) with the hands in the hair”.

Verb

 * 1)  to be at one's wits end