Hi
A person needs to have a minimum of 6-7 hours of sleep. That too a good sleep. To function throughout the day with ease.
It is considered heavy for both mind and body.
It seems like you have to work on your sleep pattern. May be?
There can also be an organic cause of your headache.
You should try to see what's causing this. Is there some emotional/ psychological distress or your headache is causing this.
Next Steps
consult a doctor (Neuropsychiatrist or Psychiatrist)
Do take regular sleep.
Health Tips
Try doing some relaxation exercise before going to bed.