‘Frying pan into the fire’ syndrome is very common in the world of career change.
To go from one unfulfilling job or career to another can have the impact of prolonging the agony. My advice would be to hold tight until something more exciting comes along – or, if the exactly right job isn’t looming, try to find one that, at least, reduces the level of angst / boredom you’re currently experiencing. You can even take a step backwards into a less challenging job as a safe harbour to get you out of your current job.
Faraway hills are always far away: they’re not always green. Don’t allow your desire to leave prevent you from assessing where you’re thinking of going.