Looks you have compartment syndrome of leg , it is due to excess prolonged contraction of muscles.
Next Steps
Adjust seat position suitable to avoid excess stress on the leg muscles. Check vit d level in blood to supplement with adequate amount of it. Tab Magnilead LC two tones a day will be effective for cramps.
Health Tips
Consult orthopaedic surgeon