How did you manage only 3 hours at a psych ward? I tried to be calm and rational a few days after I voluntarily committed myself and it didn't work. In the end, I tried to quote their rules/FAQ at them about how it stated that I was allowed to ask to leave (and should be capable as long as it was voluntary). In the end, they just pink-slipped me and made me stay longer. )8
I had accidentally overdosed on my regular meds by forgetting I had taken them and taken them again later in the day. I was on twice the recommended hightest dose which lowered by seizure threshold so that already didn't help and I did this two days in a row because i waa having a serious migraine so taking big amounts of benzos to try to sleep it off.
I eventually emailed my psych who emailed me back at 10pm and called me to tell me to to go to the Hospital IMMEDIATELY but I'd fallen asleep (with visual hallucinations). I eventually went the next day after more calls from my psych and ended up spending half the day in the ER running blood and cardiac tests, then my psych sent me to the psych ward to be evaluated (though I had insisted it was accidental and it was). They locked up all my belongings, made me wear some blue pants and top with were way too big, and I spent 3 hours sitting there in my minimalist room with the doorknob flat as a pancake to make it harder to run out quickly.
I knew I had to be very calm and appear as normal and as obedient as possible which I did. I'm good at talking myself of things so I had a bit of confidence there. I refused the meal they offered and finally because I appeared otherwise normal and logical they had to let me go... I walked home (over an hour) and vowed to never let it happen again. The key for me is maintaining composure on the outside but thats very hard to do.
In your situation, with the emotional turmoil I don't think it would have been possible... that was an incredibly traumatic thing to go through... sadly not only does the psych ward make most people worse but it heightens their desire to CTB when they leave. Kind of defeats the purpose to be committed unless you are majorly in psychosis of the worst kind, hallucinations, delusions, violent, and unable to even walk on your own.
A better thing maybe would have been to have you consult with a mental health specialist who is compassionate and whose main job to talk to distressed people like you at the hospital (for as long as neccesary), have an appointment set up for the next day to at least have someone to talk to and to listen...
Sadly it doesn't work that way. If it did, more people would vomuntarily consent to going to be able to be heard and calmed down drug-free and leave with resources and way to cope.