If you say that you are banging your head against a wall, you are emphasizing that you are frustrated because someone is stopping you from making progress in something.
[informal, emphasis] I appealed for help but felt I was always banging my head against a wall.
I wondered if I was banging my head against a brick wall.