Welcome to HealthcareMagic.A history of headache for more than a week, the causes could be lack of quality sleep, which could be due to a bad posture, sleep apnea( a breathing disorder), bruxism(grinding teeth), snoring
partners or restless leg syndrome
. Apart from these any other organic cause also needs to be ruled out. So i would suggest a neurologic consult with EEG and MRI
. Take care.