Is this and attack?

When am not talking to my friends or family my mind goes to sad places or i remember something bad that happens and I start breathing heavily like i can't breath and start crying when i don't mean to and I sometimes feel a little dizzy but it stops in like a minute or when i get out of the room and take a breath. What do you think that is?