This is most likely an episode of BPPV, or benign paroxysmal positional vertigo - a momentary dizziness that you get when you move your head.
Typically occurs when you get up from bed or when you roll in bed or move your head.
It is a non-critical condition and self-resolving, and you will require to do some exercises.
You should do some adaptation exercises for your dizziness, you can look up here:
These exercises are the mainstay of treatment, you should do them regularly.
You should also take OTC Cap. Benadryl 50 mg twice daily, this has an anti-dizziness effect. It may cause sleepiness.
In general, however, all dizziness episodes should be checked up. Such dizziness could also be caused by other ear conditions like Meniere's disease. More importantly, it could also be caused by heart diseases and strokes, etc. So it could be a sign of some potentially dangerous ailments. You should consult your doctor, your GP or Family Physician, for an examination and investigations if necessary. Ask about BPPV. A maneuver called Epley's maneuver is very useful for this, ask about this.
If the dizziness persists even after treatment from your primary physician, you should see an ENT doctor for this. You will need a clinical examination plus tests like the Dix-Hallpike tests and ENG. You should discuss these tests with him. You will need antivertigo medicines plus need to do some mild exercises.
Meanwhile continue with the Benadryl and the exercises till you get to your doctor
Hope I have been able to clarify the situation for you and helped in resolving your query.
If you need more help, please let me know so l can continue to assist you.
Thank you and I wish you the best of health - stay safe!
Dr. P. Jyoti