Glad you spotted they were having problems in time
When it's really hot, apart from lots of water, shade, etc, I fill 2/3 litre plastic milk containers with water, freeze the water, then cover the bottles and pop them in the nest boxes.
The bottles stay cold for quite a few hours.