Severe pressure?

I was asleep for about 4 hours and fell asleep on my back, rubbing my stomach because that’s the only thing that helps my hips and I woke up because of excruciating back pain, and pressure. Of course I got up to check if I was bleeding, (I always do still at 23 weeks) and I’m not and it started to go away once I got up. Was it just because I was on my back too long? I’ve never stayed on my back in my sleep but I guess I did last night. It’s basically gone now, and lasted about 10 minutes and I can feel baby moving, but my goodness. Has anyone ever experienced this?