Hi. Headache an occur from multiple reasons like migraine, stress, ear or eye problems. You will need a detailed evaluation in order to reach a definitive diagnosis.
Since your headache gets precipitated by hunger and sunlight, migraine might be a likely diagnosis.
Next Steps
Please consult a psychiatrist for detailed evaluation.