There is no teaching of the Church that a Pope could not attempt such a thing ....
I you believe this to be the case, then you've lost the Catholic faith. If the Church cannot be trusted as a guarantor of valid Sacraments and true doctrine, then the existence of a Church and of a hierarchy is utterly meaningless. Now Plenus here and Stubborn are empowered to be the sherrifs and enforces of Sacramental validity and sound doctrine, and not the Catholic hierarchy. This is so preposterous that I have no words.
This is THE essential role of the Church, to guarantee and safeguard not only true doctrine but all that pertains to the salvation and sanctification of souls (first and foremost, providing valid Sacraments).
This is Catholicism 101 and what distinguishes Catholicism from the Prots and the Eastern Orthodox and the Old Catholics, who ALL claim (along with many R&R now) that the Church had become corrupt and departed from the Deposit of Revelation, from sound doctrine, and from true moral standards.
https://www.newadvent.org/cathen/03744a.htmAmong the prerogatives conferred on His Church by Christ is the gift of indefectibility. By this term is signified, not merely that the Church will persist to the end of time, but further, that it will preserve unimpaired its essential characteristics. The Church can never undergo any constitutional change which will make it, as a social organism, something different from what it was originally. It can never become corrupt in faith or in morals; nor can it ever lose the Apostolic hierarchy, or the sacraments through which Christ communicates grace to men. The gift of indefectibility is expressly promised to the Church by Christ, in the words in which He declares that the gates of hell shall not prevail against it. It is manifest that, could the storms which the Church encounters so shake it as to alter its essential characteristics and make it other than Christ intended it to be, the gates of hell, i.e. the powers of evil, would have prevailed. It is clear, too, that could the Church suffer substantial change, it would no longer be an instrument capable of accomplishing the work for which God called it in to being. He established it that it might be to all men the school of holiness. This it would cease to be if ever it could set up a false and corrupt moral standard. He established it to proclaim His revelation to the world, and charged it to warn all men that unless they accepted that message they must perish everlastingly. Could the Church, in defining the truths of revelation err in the smallest point, such a charge would be impossible. No body could enforce under such a penalty the acceptance of what might be erroneous. By the hierarchy and the sacraments, Christ, further, made the Church the depositary of the graces of the Passion. Were it to lose either of these, it could no longer dispense to men the treasures of grace.
Promulgating invalid Sacraments would constitute a defection of the Church in the very essence of her mission.
And your assertion that the Church loses the hierarchy when an Antipope usurps the papacy is absurd, as this has happened many times throughout Church history, nor is the hierarchy lost during any
interregnum. But if legitimate popes could promulgate invalid Sacraments, the Church would effectively be defunct.