It's nothing to do with heat, as whilst heat will evaporate the moisture, it has no escape from the sealed light units, so will just reform as water droplets when it cools down. Stuff a couple of silica gel bags into the headlight through the bulb access appature to suck up the trapped moisture and all will be good.