Hello,
Thank you for your query at DoctorSpring.com
I understand your cocnern.
With a swelling around the ankle, and with pain radiating down from the calf towards the ankle, it is better to get a Doppler to rule out clots/DVT.
It is not because of your sleeping posture, or a pulled muscle. In such cases, there will be some amount of muscle cramps, but swelling around the ankle won't be present.
Kindly get a Doppler done, and you can upload the reports for me to review.
Regards