It's hard to know exactly what happened from the description. If you found it took effort to inhale, and you were having stridor (the noise that's mentioned) then you may well have had some laryngospasm. It's an involuntary response to liquid in the airway, and it's the body's attempt to protect you from aspirating water. Unfortunately, some people have very sensitive airways and can go into major laryngospasm easily. Severe laryngospasm is a true medical emergency. Sometimes you can overcome it with positive pressure ventilation (and you might be able to create a little bit of this if you block your reg's exhaust ports as best you can, and purge it lightly). Defeating laryngospasm is one of the very good reasons for rescue breaths when you get a non-breathing buddy to the surface.
What's not very consistent with laryngospasm is the description that you were breathing rapidly and uncontrollably, because in the face of laryngospasm, you'd be unlikely to be moving much air.
There is no way to overcome laryngospasm voluntarily, but if it is due to an irritant in the airway, it is usually a brief response (unless the irritant is severe, as with smoke inhalation or inhalation of toxic chemicals). Controlling panic when you are underwater and can't move any air has to have been a difficult thing, and I'm impressed that you did so well with it. I'm not sure I would!
What's not very consistent with laryngospasm is the description that you were breathing rapidly and uncontrollably, because in the face of laryngospasm, you'd be unlikely to be moving much air.
There is no way to overcome laryngospasm voluntarily, but if it is due to an irritant in the airway, it is usually a brief response (unless the irritant is severe, as with smoke inhalation or inhalation of toxic chemicals). Controlling panic when you are underwater and can't move any air has to have been a difficult thing, and I'm impressed that you did so well with it. I'm not sure I would!