Have you tried sleeping with a pillow between your knees? That may alleviate some of your discomfort. There are so many reasons for muscle aches and often times it can be completely unrelated to your pregnancy. If it's cramping then try drinking a full glass of water before bedtime and make sure you drink enough fluids throughout the day. You'll be amazed at what enough liquids can do for you.