I got cooked on a hot summer ride once on a long hill. Stopped at the top ... and threw up! Drank all the water, rested a bit and then eased on home. Fortunately, I was less than a mile away from the homestead.
Now, I always back it off during the heat ... I don't push it, and I drink plenty, both on the bike and hours before I head out. Makes a big difference.