The most likely cause of Horatio's heatstroke after running a marathon is:
He ran at noon on the beach.
Running at noon typically means higher temperatures and direct sunlight, both of which can significantly increase the risk of heat-related illnesses like heatstroke, especially during strenuous activities like a marathon.