Paper bag. Blow into it for a few seconds. I kid you not.
Best thing to do is to talk yourself out of it. Just keep telling yourself to calm down, there's no need to panic, it'll pass and don't worry, you're stronger than you think. Go to a quiet corner and sit down, relax......
I had to do all that while in labor. Good luck.