Although it is usually comfortable to sleep in what is known as the fetal posture, with legs curled up, this may make for an uneven distribution of body weight and lead to back pain and sore joints. It may also bring on hip pain (hip bursitis) and shoulder pain, like https://www.theorthopaedicandpainpractice.com/the-best-sleeping-positions-to-relieve-neck-pain/