Sore legs while sleeping


I’m usually a back sleeper, but I know it’s better to sleep on my side for the baby. I got a pregnancy pillow to help me sleep on my side. But every time I sleep on my side, my legs get so sore and achy throughout the night - to the point where it wakes me up. Does this happen to anyone else?