I think you were just over-stimulated, to be honest. The mind can freeze when it's overloaded.
Your brain might have been needing a quiet night in, but you forced it to party instead.
If you count how many stimulating factors there are in this situation - your original condition, withdrawal from the meds you were taking for it, rec drugs, alcohol, noise, dodgy people doing unsafe things, obsessing about what people think - no wonder your poor head had to shut down.