between a rock and a hard place

be (caught/stuck) between a rock and a hard place
(to be in a position in which you have to choose between two things that are not good) – между молотом и наковальней

also
[out of the frying pan and into the fire]
[between the devil and the deep blue sea]