According to the cognitive psychology class I took in grad school, there was a study that indicated the biggest obstacle to problem solving was getting stuck in a dead end / wrong solution and not being able to think in another direction.
Often, when the study participants took a
break--a break long enough to forget the wrong answer--they would see
the solution soon after resuming work on the problem.
I share this here for whatever it's worth.