As you describe above can be a migraine
attack. It is a recurrent attack of dull or some time severe pain
mostly one side of the the head.It is associated with nausea and vomiting
. The condition may be worse in the patient who is sensitive to light or high pitch sound. The attack will last for 2-3 hours and patient get relief after deep sleep.
Medication is not helpful for relief of acute pain. According to me first you recognize the pain aggravating factor and try to remove for the same.
Some precaution you may take:
1. Don't empty stomach for along time.
2. Take plenty of water in the morning and avoid constipation
3. Avoid smoking
4. Deep sleep.
5. Regular warm up exercise before start your official job.
Please don't hesitate if you want any more information.