When I get stuck on a problem, I have this mental space/process I engage where I tell myself I'm going to let my subconscious work it out while I focus on other things. Often I do this before a nap or bed. I still do this, and have been doing it for as long as I can remember. It works more often than not.
It's really hard to step away because feels like you're quitting. But the time that you "lose" taking a break for your brain it will be rewarded when you get back to it. I struggled with that for so many years, now I finally accepted that I'm just doing this to be in a better place when I return to the problem.
You might be increasing the resources affected to the background thread or its priority. I too try to run as many background loops all the time, to be prompted by insights at the weirdest fun times and banging my head against problems seem to increase the number and insighfulness of these prompts. Frustration, more context, spite... Who knows.
If I'm stuck I just go do something entirely different for a while, and when I come back the solution is usually immediately obvious.