Your history suggests that probably you are suffering from benign paroxysmal positional vertigo(BPPV).
Treatment for BPPV is exercises only as advised by your ENT doctor.
Medicines generally have no role but drugs like VERTIN
are taken in acute episodes.
Most common exercises employed are
do your exercises as advised by your doctor.