You were probably having a panick attack, I get them when I am stressed or like you when I get yelled at by someone (but I have chest pains that cause me to have them all the time) you can do what I do which is pace back and forth, or when my friend has them she almost hypervenalates everytime...