be hard on oneself, "beat oneself up"; try and accomplish something that can't be done that only results in frustration
RAM ONE'S HEAD AGAINST THE WALL
Meaning of RAM ONE'S HEAD AGAINST THE WALL in English
Explanatory English dictionary bed edition. Толковый словарь английского языка Редакция bed. 2012