Thanks for writing your query.
One sided headache with discomfort in bright light or loud sound can be due to Migraine
There are many trigger factors for migraine :-
1. Lack of sleep
2. Ciggarete smoking
5. Missed meal
6. Heavy exercise
7. During mensturation in females
8. Dairy products
You can identify which factors trigger your attack and prevent them accordingly.
Also get a scan of your head to rule out any other possibility.
Get yourself examined by a Neurophysician to rule out Cluster headache
I hope this is helpful to you.