This is possibly the best article I've ever read about grad school. If you haven't read it yet, do. You'll like it.
I think it's important to frame oneself as a mental athlete. Olympic athletes don't exert themselves for 20 hours and then get 4 hours sleep and expect any kind of peak performance. You need sleep, you need a mix of focused effort, and unfocused consolidation / inspiration time, etc.
Programmers and students have a tendency to ignore lessons about training and peak performance that are well understood by those in physical sports.
This course changed my life: https://www.coursera.org/learn/learning-how-to-learn
verb: to be in accord