Hi, I have suffered from several severe vertigo attacks over the last few years. As Sunlover said, it is probably BBPV. There are exercises you can do to help with this but you will need to see your doctor first and then probably a physical therapist.
Vertigo like you are describing is very rarely caused by heart problems. It is usually an inner ear disorder and there are several other things that can cause it, most all of them non-serious. Doctors will usually try to rule the serious stuff out and then end up telling you then don't know what it is.
Seriously, it is often very diffiuclt to diagnose the actual cause of vertigo as there are many causes and the vertigo feels the same no matter what is causing it. Since yours is short lasting there is a good chance it is BPPV. Because vertigo and dizziness go hand in hand and people have different definitions for them, you doctor will probably want you to describe what is happening without using the words vertigo or dizzy.
To me the feeling of vertigo is one of the worst feelings in the world so I can sympathize with you. It feels horrible and it is very scary. My attacks have lasted hours and I have had to go to the ER by ambulance several times. I've been to several different doctors and it seems each one has a different idea as to what it the problem is (and so far, none has ever even suggested it might be from the heart).