Also Bellarmine:
The Pope is the Teacher and Shepherd of the whole Church, thus, the whole Church is so bound to hear and follow him that if he would err, the whole Church would err.
Now our adversaries respond that the Church ought to hear him so long as he teaches correctly, for God must be heard more than men.
On the other hand, who will judge whether the Pope has taught rightly or not? For it is not for the sheep to judge whether the shepherd wanders off, not even and especially in those matters which are truly doubtful. Nor do Christian sheep have any greater judge or teacher to whom they might have recourse. As we showed above, from the whole Church one can appeal to the Pope yet, from him no one is able to appeal; therefore necessarily the whole Church will err if the Pontiff would err.
(De Romano Pontifice, Book IV, Chapter 3; Grant translation.)