You didn't mention what type of gas you were breathing but from the type of diving you were doing, cave diving, I would guess it was some sort of oxygen enriched mix. I was of the belief that Sudafed wasn't to be taken when breathing oxygen enriched gas mixes as could predispose you to oxygen toxicity. Some of the symptoms you discribed sound as though that may be a possibility.
I found this info in the net...
Muscle twitching and spasm
nausea and vomiting
dizziness
vision (tunnel vision) and hearing difficulties (tinnitus)
twitching of facial muscles
irritability, confusion and a sense of impending doom
trouble breathing, anxiety
unusual fatigue
incoordination
convulsion.
Factors increasing risk of O2 toxicity
Increasing exposure time
Increasing depth
Increasing the percentage of inspired O2 (As in nitrox mixtures)
The simple act of immersion setting off the diving reflex
Exercise increasing the metabolic rate
Increased CO2 in the tissues (May be due to cerebral vasodilation)
Cold stress (Shivering is a form of exercise)Systemic diseases that increase the metabolic rate (such as thyroid diseases)
Sympathomimetic drugs (Drugs that mimic adrenalin in effect).
Sudafed is a medication often used by divers due to it's decongestive effect. It has few side effects but is a sympathomimetic drug (pseudephedrine). Whether or not it should be used in nitrox or rebreather diving is discussed by Dr. E.D. Thalmann in DAN's publication at
http://www.diversalertnetwork.org/medical/articles/article.asp?articleid=51
"In 1962, none other than DAN's Chief Executive Officer, Dr. Peter Bennett, while working as a research physiologist at the Royal Navy Physiological Laboratory in England, published a paper (Life Sciences; 12:721-727, 1962) testing the hypothesis that oxygen toxicity and nitrogen narcosis were caused by similar mechanisms.
He found that in rats, sympathomimetics seemed to enhance oxygen toxicity. Pseudoephedrine was not tested specifically, but it is a sympathomimetic, so we might infer that it has a similar effect. In addition, our current understanding of the mechanisms which produce oxygen convulsions would predict that sympathomimetic drugs might enhance susceptibility to oxygen convulsions. It has been shown that drugs which inhibit sympathetic stimulation seem to reduce the likelihood of oxygen convulsions in animals. No human studies have ever been done. Thus, at least a theoretical reason exists why pseudoephedrine should be avoided while diving on high PO2 dives."
Just a thought.