If you're very tired you should be able to fall asleep, or at least doze off, whenever you let yourself go.
It seems likely that you'll get those flushes right after falling asleep, so a nap of a few minutes could help a lot.
In my experience, after a night without sleep even a 30 seconds nap reinvigorates you significantly.