This sounds like you had a vasovagal syncope
attack or faint. It's not serious and is often associated with standing for sometime in crowded and hot environments. You did the right thing in going outside for some fresh air. It may happen again and if you feel the same sensations then sit down and you are likely to recover.