Thanks for posting your query.
It seems like you probably have a milder form of BPPV (Benign Positional Postural Vertigo
). This may be the beginning stage.
Check for repeat of the same symptoms. If it happens frequently, get it confirmed by examination by an ENT specialist
You may need anti-vertigo drugs. These are prescription drugs, please get them prescribed by your doctor, if need be.
Do not do rapid jerky movements all of a sudden. Drink plenty of fruit juices and fluids orally.
I wish you quick recovery.