You might be dealing with a form of Social Anxiety. Your best bet would be to talk to your doctor/therapist/psychiatrist and consider medication and/or therapy.
It happens to me too, but something you need to remind yourself of is that all of the things you worry about...are 99% most likely not going to happen. Your friends are just people and they feel the same emotions as you do, and they have embarrassing moments. They don't have it together every second of the day, they're not perfect.
Start caring a stress ball or string to play with when you get nervous. Remember to breath deeply and slowly. Close your eyes, count to ten. Tell yourself that the anxiety and panic will pass, it always does. You're going to be okay.
I really do recommend talking to a doctor.