Hi Shornys, you seem to be having good sleep if you are following the same cycle all the days. You need to say if are having sleep in daytime also. How many hours you used to sleep early and what was your routine. Obstructive sleep apnea could be a reason for you to wake up frequently in order to regain your breath—sometimes resulting in number of awakenings per night, many times you may not even be aware of it ending up having excessive daytime sleep because of fatigue, feeling unrefreshed after sleeping, and daytime sleep attacks at your workplace. Added to all these stress you are going through can be a trigger. Modafinil is a central nervous system stimulant used for the treatment of narcolepsy. It is also used for the treatment of excessive daytime sleepiness caused by obstructive sleep apnea/hypopnea syndrome and shift-work sleep disorder. It would be better to consult a sleep doctor and ask for sleep test before you chose to take any drug. Keep updating your thoughts in this section. Take care.
One more thing, with young people, docs sometimes go straight to wanting to attribute it to lifestyle or even a psych issue. I would recommend if that happens to you that you be your own advocate and request a diagnosis not be assumed without formal testing. Just my "voice of experience".
You could benefit from seeing a sleep doctor and getting a sleep study. Sometimes practicing good sleep hygiene can be enough, but you could actually have a sleep disorder. Your headaches could be related. Until getting a sleep study, google sleep hygiene and put some of the tips into practice.