beat your head against a wall
(colloquial) try to do or obtain something difficult with very little hope of success.