I agree with not blaming yourself!
Quite often the hip breaks first, and that causes the fall. As elderly become frail, it's eventual for some to have weakened bones, and the hips are often a big result of that. I doubt there was anything you or she could have done about this, no matter whether you were sleeping or not.
I hope she feels better soon...and that you get your rest!