And I love when I find myself in situations like this - although it happens more and more rarely as I age.
The answer, of course, is: perspective.
And there are all sorts of ways to shift your perspective, but the general heuristic is to step back, zoom out, and talk to yourself in broader, more generic terms. Details are your enemy when you're in a rut (although they turn into your best friend when you're on a roll!)
Take some time, over a number of days, to consciously and consistently quiet your mind. Just give yourself the luxury for a while to not worry or even think about the details of your situation. Try to find some broad positive themes about life in general. Some things that are, roughly, good. Just stay away from the details.
Take it easy. Disengage for a while and take time to breathe, to walk, to do simple things that are, fundamentally, pleasurable.
It won't take more than a few days to get yourself back on track. Juice will start flowing to you again soon enough. Just don't rush into it, simply let it come on its own terms, whenever it wants.
You'll be fine.