Welcome to the forum!

It sounds to me like you had a series of false awakenings (FAs) where you dreamed you were paralyzed (not to be confused with actual sleep paralysis, which is a medical condition that makes you legitimately be paralyzed upon wakening). FAs can often be surprisingly real, which makes them so hard to recognize when you're having them.

I haven't experienced any dream paralysis like that, though I have had a really long chain of FAs before. Even though I was lucid at first, I was eventually became scared that I wouldn't be able to wake up and was just stuck in a dream loop. I think I also woke up with my heart beating super fast (I've had that with a couple dreams, actually). So it's normal to be frightened when something like that happens, but once you recognize that you're paralyzed, you can realize that you're dreaming and turn it into a lucid dream.