I had similar a few weeks ago…I was actually losing my balance and falling over at one point… and was told it was possibly due to ear crystals! I was given the link to the video below with exercises to help and since I did it I’ve been fine.
Just to warn you though if it is to do with ear crystals then when you turn your head to the side affected the room will spin but you need to stick it out till it stops.