Welcome to HCM,
The cause of this type of headache could be due to many causes like tension headache
, migraine, cluster headache
, or any intracranial space occupying lesion .
Your doctor has prescribed you demerol, which is a narcotic analgesic
If the pain doesnot subside or symptoms are very much worrisome then consult a neurologist
and get one MRI scan for definite diagnosis.