sleeping on my back!!

Ka
I'm 18 weeks pregnant I sleep on my back every night all the sudden and sometimes wake up this way?! It's suddenly been the most comfiest position for me but I have read that you should not sleep on your back! Am I harming my baby or myself? What are the risks and when should I definitely stop for my babies safety?! Need advice!