My advice is to keep tabs on how much you're consuming and consider to giving yourself off days when there isn't work to be done. Definitely try and get a good night's sleep too (coffee late in the day isn't great for this, so worth keeping that in mind).
Most importantly, figure out what works well for you.