tear out (one's) hair
To be extremely anxious, worried, frustrated, or stressed out about something. We've been tearing out our hair trying to figure out what's causing the server outages. The kids have been out of control all morning long—they've got me tearing out my hair!