What if the sacraments themselves are not sanctified, because of the lack of character and faith of the Priest?
In such a case, the Priest is not a Priest, he is just a waiter.
If a priest takes holy orders, he is a priest and can consecrate, even if he is not such a faithful priest. Jesus is in charge of the consecration. The priest is just a servant of God.