Then you rest. Sit down, take child's pose, drink some water, and come back when you're ready — that's not quitting, it's how everyone learns to work with heat. Try to stay in the room if you can, since leaving and re-entering is harder on your body than resting is. Your teacher will check on you.