When it happens try to have them focus on something else, like watching a YouTube video on your phone. Get them to drink some water too. That seems to help pull them out of it.
Giving them a lighter blanket and/or a fan will help to keep them from overheating in the future.