That sounds like it was a pretty scary experience, sorry to here that you had to go through that.
It could be the psych meds our on, you didn't list any of them so it's hard to tell if that's what it could be.
I've found a lot of the AP's can leave you feeling confused and spacey, and lamictal also missed with my cognitive abilities.
I would call your pdoc and discuss this
The Wolf