tear one's hair
Also, tear out one's hair. Be greatly upset or distressed, as in I'm tearing my hair over these errors. This expression alludes to literally tearing out one's hair in a frenzy of grief or anger, a usage dating from a.d. 1000. Today it is generally hyperbolic.