Since the baby growing and getting heavy day by day this might happen and is nothing to worry. While sleeping don't strech ur legs to much try finding a comfy position. Take pillows under ur legs for support if that feels better. ....
Try to relax yourself, and don’t think about the pain. I also try not to stain myself too much.