You might just be having really bad migraines, my dad has bad one like that but they last for a whole day and he can't even move. what helped him was changing the color of his room, its now a dark brown, but supposedly the light is what gave him the migraines... :/
are you diabetic? it might be diabetes kicking in... just a thought? either way you should go see a doctor as soon as possible when it comes to this..
it could be that your blood sugar is low or you stant up to fast and it could also be your eyes that are giving you the headache, so first get your eyes tested and if thats not the problem go see a doctor