Two school heads at a state-subsidised (concertado) school in Madrid have stepped down while under investigation for the mistreatment of babies.