If you are hungry for long before these episode it can be simple hypoglycemia
and you can get better by having some sugar and eating/drinking something.
Is the headache throbbing type? If yes then it can be migraine which gets precipitated by sunlight and bright light (video game) along with nausea and dizzyness
. But headache in migraine is generally severe than mild.
Another possibility is panic attack
if associated with palpitation
, shortness of breath
, tremors, choking sensation, sweating and impending doom.
If you had any fever or infection you may need some investigations.
In any case if your symptoms are persistent you should see a doctor.
Hope your query is answered.