This is why I try to stop when things are "unfinished", leave a note for myself, and pick things up from an easy starting point later.
Another way I "get unstuck" is a heavy dose of mushrooms and a long walk in a forest. But that might not be for everyone ;) And it's more of a 1-2x/year type thing.