Cramps during sex

Over the past couple of years I've noticed I get a lot of cramping in my legs/feet during sex. It can really ruin the mood and prevent any orgasm. Does anyone else experience this? Anyone know how I can stop this? Helpppp 😥😥