If this is hapenning more often that you can count. You need some rest. Take one or two weeks off (or more if you can).
Some day to day tips.
1 - Try to use productive procastination (work on things not related to your current task).
2 - Take a walk.
3 - Take a small nap.
4 - Talk to someone.
5 - Eat fruits and drink water.
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.