How old are you? Whats your occupation? Do you sit in front of the laptop?
Firstly. the headache might be due to the neck pain
. There is a condition known as cervicogenic headache
, thats the terminology you need to use. Usually bcos of bad posture of work and lifestyle.
The trasient black out might be due to pooling of blood to the limbs
. Since you action was quick the blood going to the brain reduced bcos of which you had the blackout
. Its very common. No need to worry. Drink lots of water.