On the topic of facing a problem for which you have exhausted ideas to resolve it and feel “stuck”:
Your mind is empty, you have a “hollow-flexible” attitude of “beginner’s mind.” You’re right at the front end of the train of knowledge, at the track of reality itself. Consider for a change, that this is a moment to be not feared but cultivated. If your mind is truly, profoundly stuck, then you may be much better off than when it was loaded with ideas.
Your mind will naturally and freely move toward a solution.
[Robert M. Pirsig - Zen and the Art of Motorcycle Maintenance]