That sounds quite scary [emoji33]
Not sure it helps, but my 1 gerbil does that. She'll be sitting or curled up and then fall over/off her ledge and she'd just keep laying there for a bit and then be fine.
My gerbils are almost 3yrs so I've chalked it up to old age.
Hope your hammy is OK [emoji173]
Sent from my SM-A715F using Tapatalk