Oh man, I remember this! It was a little unnerving to experience it. I would be sitting there and then all of a sudden I would be breathing heavy like I just ran a race (although my heart would be pounding in my chest, too). I would be hard to catch my breath and speak normally.
I spoke with my doctor about this and he said that it sometimes happens. He recommended drinking ice cold water or Gatorade when it happened. I have no idea why, but I was willing to give it a shot. I did help somewhat. Fortunately, mine only lasted during the first trimester and then it abruptly ended.
Good luck - I know it can be scary! Just talk to your doctor for more information and make sure it isn't something else more serious.