Take vitamins & get more sleep. Sometimes its not the coding - its you (please read in a good way - once you overwork its easy to go in a downward spiral.)
- Been there, done that
And eating nutrient dense food is the best way to get vitamins.
I completely agree with you on the sleep aspect. Sleep does wonders for concentration, creativity... I would also recommend a standing desk.