Sleeping stomach/back?

How long can you sleep on your stomach? And why is it bad to sleep in your back?? FTM over here with no clue what she's doing! 😅