I used to be on Ambien and I fell numerous times and did in fact hurt myself many times. What I did isn't complicated but it kind of worked due to how the drug works, I think. I would make a deal with myself that if I started to tip over (typically while standing at the toilet) and hopefully it wouldn't come to an all out fall. I would then have to sit in my recliner for 5 minutes. What would always happen is that due to not moving about etc., I would fall asleep. Never failed! All that needed to happen is to stop moving about, no TV, just quiet in the chair for 5 minutes.
It's worth a try if you can make yourself do it. Good Luck and please be careful, this is exactly how one could OD without even knowing it.