Freaked out - stopped breathing in my sleep?

I went to sleep and had a dream that I fell face flat in a pool of water, I couldn’t get up because I couldn’t swim and kept drowning. I began gasping and breath was stopping 😑 My husband (who was awake at the time) had to nudge me. I woke up and cried. I woke up gasping for air. He said he heard me gasp and quickly gave me a nudge....

Was this sleep paralysis

I was SOOOO scared.