It has happened to me quite a few times.. I just go outside and take a deep breath of fresh air meditate about how beautiful the stars are or something and all is well. I think its sort of a mini anxiety attack.