The rest sounds like you were emotionally overwhelmed, and that was your breaking point. It could be due to an ASD, but it also could be due mental illness. You could ask for any notes the clinicians have on you, and their observations could give you an idea of where to look. Did you get a diagnosis of a mood or anxiety disorder (they tend to give someone depression or some anxiety disorder in the least if you make it to the "ward")?
I had a similar experience, with the voices telling me to kill people and all, but the mental hospital was a good place to me, and for me to be there (other than missing my mother, which sucked).