There are many reasons for autoinfanticide. Frequently it is a number of stressors. When there is a threat they may do it to regain the nutrients as was mentioned. Overcrowding is another issue. I found that my convicts turned on eachother and the fry when the fry got to a certain size.