This is just my experience but hope they help you
Sadly due to 3 of symptoms of my conditions which are anxiety, spasms and abnormal emotional responses, I have been given them when in a psych unit,
I have also been offered them many times in hospital to get me out of spasm but I will list all the options re muscle relaxant instead as I have a paradoxical effect with them, I wouldn't touch valium if you paid me millions.
During one of my admissions many years ago and leaving the unit with the intention of completing taking my life, I was taken back to the unit after being found in the process, I was angry and lashing out and was given an injection of what was used on the ward then which was valium, according to the ward Dr who told me weeks later, I was given enough to knock me out and let me sleep for a while and calm down so they could try to reason with me.
However, none of us knew that I react paradoxically to it (where it is supposed to relax body and mind and make sleepy), it did the exact opposite. So while they waited for it to work, I was put on observation in a side room and as time passed, I got more and more lively and finally did a strip, by that time 3 staff were chasing me trying to redress and I was trying to replicate Riverdance and the lift from Dirty Dancing by launching myself off a table in the dining area to my imaginary Patrick Swayze. I apparently grabbed the Dr and did the tango with him down the ward while they tried to dress me, I was completely hyper and the exact opposite of the relaxed, sleepy patient they expected.
Apparently, when I was coming down from it as they needed to wait a certain amount of time due to other meds I was on, I got the munchies and ate an entire loaf of bread in toast in the middle of the night as each time I ate I asked for more. I finally agreed to take oral meds and so was given something other than valium. I slept the next 3 days and as wasn't willing to stay voluntary I ended up sectioned but it was a pivotal point in my life,
Back about 9 years ago, I was given clonazepam by a consultant on a medical ward while I was inpatient, it was a bedtime dose but cos it was called a different name I didnt recognise it as one of the pam family, the staff had a night from hell with me. The dr couldnt understand why till I queried other names for the medication and then explained why and what had happened. While I did get some sleep that night, I had sleep paralysis broken with constant screaming and then sleep for a few mins
I am an absolute nightmare medication wise as I react funny to them but I avoid this family for the sake of my sanity now.