It sounds like you did a little more than your body could handle in the heat. It’s happened to me too, and it’s a scary feeling. I don’t know what it is, but I’m glad you took the time to cool down and rest. The others will probably be able to tell you more. I’m glad you are ok now,.