Are you tensed about your examination? My suggestion is that you first consult a doctor and rule out any deficiency or eye problem that could be one or more reasons for the head ache.
Regarding the sleepiness and headache while studying you may consult a Counsellor or a Life Skills Trainer who can help you with effective study methodology.
Next Steps
First and foremost please rule out any health related issues, if any.