If you're having trouble functioning in a moment, here are some techniques you could try.
Slowly drink a glass of room-temperature water when you start to feel troubled. It changes your brain chemistry.
Try writing down what's bothering you, or at least put what you're feeling into words. This...