This is known as vasovagal syncope or postural hypotension. All you can do is some stretching in bed before getting out of bed. Check your haemoglobin, bp and sugar levels. I hope all will be ok. Nothing to worry if these stats are ok.
Suggestions offered by doctors on Lybrate are of advisory nature i.e., for educational and informational purposes only. Content posted on, created for, or compiled by Lybrate is not intended or designed to replace your doctor's independent judgment about any symptom, condition, or the appropriateness or risks of a procedure or treatment for a given person.