There seems to be a bug related to sleeping. Apparently, the time you spend sleeping counts as time spent awake for the purposes of sleep deprivation. So when you try to go to sleep because you only have an hour of energy left, it will count the remaining 7 hours as sleep deprivation.