Like Joe said stepping back helps a lot on refocusing on the actual problem and thus find a solution. My head is always working in background on the problem even in the off-work time. That’s a risk if the job :). Mostly my problems get solved during sleep over night or under the shower.