Hyperventilating is not fun at all. I am surprised that the ER couldn't do anything.

Make a conscious decision to slow your breathing. I find it effective to breathe into sandwich sized brown bag until things are better. This will balance the oxygen levels again.
Do breathing exercises when you are less stressed helps you to practice for the times when things are over the top.