Don’t miss my comment on Donatism.
Donatism is an erroneous doctrine. Sin or even heresy on the part of the minister of a sacrament does not, in itself, invalidate the sacrament.