Pulled calf last mile of race

Hey everyone 👋 so I did a 5 miler yesterday - SS shows the splits - and think I over exerted myself (9:30 pace) in which Im not use to (10-10:15 for less than 4 miles, 10:45-11:15 for anything over 4 miles).

I was at the end of the 3rd mile going into the 4th where I felt a small contraction - which I said fuck it I’ll be okay - then seconds later my right calf gave out. I walked to the finish line - since I’m hard headed - then fell on the ground to get medical attention cause I wasn’t sure why my calf was pulled. The medic told me I was most likely dehydrated which is odd since I felt I did a good job hydrating the night before.

The only two hypothesis I came up with is A) I didn’t have enough electrolytes B) I didn’t stretch well or C) I just ran all out then my body couldn’t take it

Let me know what your thoughts are in what I should try to work on or be mindful of in my next race or training. I was happy this occurred for a smaller race compared to a big race like the Philly half I’m aiming for.