It sounds like a mild anxiety
. I suffer from it so badly my heart skips beats, so I understand how scary it can be.
Normally walking away from a nervous situation, or sitting down and taking long, slow deep breaths helps.
If it starts to effect your daily life, you should consider speaking to your doctor, I was given diazepam
to calm me down in extreme circumstances