Laying on back to sleep?!

J
I keep trying to sleep on my sides and by habit I keep waking up on my back. I always slept on my back until recently when I've been trying to sleep on my side because I was told that it isn't good for the baby if you sleep on your back. I'm worried because it seems like it's out of my control now. I tried pillows, my husband, and other tricks and I still wake up on my back from sleeping all night. Anyone else sleep on their back? Is the baby and your body ok when doing so? I heard it is not good so I am just looking for further advice.