Why are the ants dying?

Lack of food, too little water, stress and disease. Make sure the colony has enough seeds, avoid stressing it too much, make sure there is a constant supply of clean water in the test tube, and check for mites. In spring a large share of the workers usually die of old age, because the first workers do not live very long. From about the 2nd-3rd generation, they become considerably bigger and live much longer.