Hey, I know how bad it is to have past trauma lingering in your mind. While I never got committed, as I refused to tell anyone about my previous attempts, I had police come to my house in the middle of the night when I was a teenager with the intention of sending me to the psych ward. I had to talk my way out of it and insist that whatever they had heard through the grapevine was a fluke. I also watched multiple family members get committed against their will and had to witness firsthand the effects it had.
Everytime I hear a police or ambulance siren I panic and tense up out of fear that someone has ratted me out again and is gonna get me sectioned to the ward. Being put into one of those places can be very traumatising.
Unfortunately, many people I know have become terrified of psych hospitals after the fact. I know it doesn't make it any easier, but your reaction is common and demonstrates how horrible those institutions can be. I hope with time it is easier to sleep and you will not be plagued with thoughts about the psych ward as much.