One breathing method is called 'Box Breathing', also known as "Combat Breathing". The US Military uses this method.
To calm oneself, inhale for a count of 4, hold your breath for a count of 4, exhale for a count of 4, hold your breath for a count of 4... repeat cycle as needed.
If you cannot...