Indefectibility does not promise holiness to the occupant
The Catholic answer to the tenth century is that the indefectibility of the church does not promise the holiness of each pope: the promise is to the see, and a manifestly heretical pope ceases by himself to be pope, as Bellarmine says. The popes of the Roman families were not heretics, but politicians; and the faith does not answer for politics.
In our judgment, the answer changes the subject of the promise. If the see can be bought, imposed and tried by a synod, what is seen in history is not a protected succession, but an institution like any other. Honorius shows the doctrinal case; the tenth century, the case of government. That is why Westminster does not dispute the occupant: it disputes the see. And in 1522 it was a pope who said that the evil had passed down from the see to the members.