Thank you Barbara for the useful information.
This can be migraine, a chronic recurrent pain that can be associated with nausea or vomiting or visual complaints.
Tension head ache (secondary due to mental stress, physical exertion, or sleep issues) is another possibility which occurs due to spasm of muscles in the head and neck region.
Cluster head ache is another possibility that give you severe head ache lasting for few days and then disappears.
Depression and anxiety are another reason.
However, the mos important (although less likely) possibility that need to be ruled out in your case is a brain tumor.
Any headache that persist beyond 6 weeks with out any known trigger need to be investigated and a CT scan of the brain is a must do investigation to rule out that there is nothing seriously wrong.
You should see a Neurologist for a comprehensive clinical examination (ask your GP for a referral) discussing the above mentioned possibilities, which will direct further tests and subsequent management strategy.
Its not only the pain killers, but there are other medications as well which your neurologist can prescribe you to prevent, and to control these kind of pains.
Until then there is no harm in taking paracetamol or ibuprofen for this.
And avoid caffeinated drinks.
My goal is to provide you with Excellent Service - if satisfied with the response, Please do not forget to Rate my service as this is the only way i get credit for my time and expertise on your question.
If you feel you have gotten anything less, please reply back, I am happy to address follow-up questions.