This can be Benign paroxysmal positional vertigo .. this occurs when otoliths ( natural stones of inner ear) has changed its position and settled at some not so normal position leading to dizziness while changing positions .
Next Steps
You need to see a doctor in a clinic where they will do some maneuver to treat Bppv.
Health Tips
Avoid sudden change in position of your head .