Could it be that I lost consciousness from a heat stroke?

Certainly can happen. Fainting associated with heat stroke is quite common. Ought to discuss your risk factors with your doctor, as this could happen again. Also, make certain you did not have a seizure from another cause.