How do I prevent spams/cramp in my calf?

Prior to the sprint effort I was at >90rpm, but then could only muster around 70-80rpm when the intensity went up from 110% to 140%.
If it’s fatigue then surely I can improve the muscular endurance of my calves?