Ever heard of a proverb that reflects on "solving a problem creates a bigger one"?
out of the frying pan (and) into the fire suggests the idea that sometime trying to solve a problem may result in a bigger one:
Fig. from a bad situation to a worse situation. (*Typically: get ~; go ~; jump ~.)
- When I tried to argue about my fine for a traffic violation, the judge charged me with contempt of court. I really went out of the frying pan into the fire. I got deeply in debt. Then I really got out of the frying pan into the fire when I lost my job.
(McGraw-Hill Dictionary of American Idioms and Phrasal Verbs)
- (figuratively) The solution or proposed solution to a problem produces a worse net result than the problem does (or threatens a non-negligible risk of doing so), especially via unintended consequences.
Also the remedy is worse than the disease or the ailment. Examples from the media:
The Cure for Fake News Is Worse than the Disease
(Politico, November 12, 2016.)
Fake news is sickening, but don't make the cure worse than the disease
(The Sydney Morning Herald, December 16, 2016.)
Both articles acknowledge that fakes news is a problem, but go on to point out that suggested solutions, which would involve giving someone the power to decide what is fake news and what is real news, would be a bigger problem.