Also the food, Could be too low quality not giving the rats enough nutrients to want to breed and or nurse babies. There for once given birth are in complete stress end up eating the babies to recover nutrients.
Try switching to a rodent lab block for a few months as see how things change.