Is sleeping on your back really dangerous?

Au

I’ve never been a back sleeper due to sleep paralysis but now that I’m 23 weeks pregnant it seems to be the position I wake up in over and over. I put pillows all around me so I don’t roll, and I still manage to wake up on my back. Is it really dangerous for baby? Should I get a pregnancy pillow or is it a waste?