5 months pregnant stiff back

Lesieli
When I'm sleeping on my back I wake up stuck, like I can't move. Now it's getting worse out of bed. My back will just lock up and lock my knees up and I'll jus collapse. The other day I collapsed off the patio lol but locks up like I can't move. Is anyone else experiencing something like this or know anything what this could be