Mental exhaustion

I haven’t been feeling well for a while now, I’ve been waking up with headaches that last the day, i was feeling nauseated, i am so exhausted yet am getting at least 11 hours sleep, i felt like my brain stopped working. After 2 weeks of felling like this I finally went to the doctor….