how old are the quails?
the quails are on dirt, so its easier for them to pick up worms or a disease, as twocrowsranch suggests, worm them, see what happens, you need to narrow down the cause of it.
BTW we had a heat wave in Sydney last couple days, hit 43c or for all guys in the states...