To pull your hair out

To be worried or frustrated about something

e.g. yesterday when I looked at my bank statement there was a transaction that I didn’t recognise. I rang the bank in case my account had been hacked but I was on hold for over an hour; I was tearing my hair out before I got to speak to someone.
(Or, I was pulling my hair out) -Both are used.