The Church doesn’t teach that popes are sinless. So the existence of sinful clergy doesn’t represent a contradiction of Church teaching or any of Christ’s teachings recorded in the Bible.
But the Bible does call the church, “the pillar and foundation of truth.” Jesus also tells us to “listen to the church.”
“But the Bible does call the church, Jesus also tells us to listen to the church.”
Context is everything.
the pillar and foundation of truth - the Church is to hold up and undergird the TRUTH - God’s revelation. The church is not the truth.
“Jesus also tells us to listen to the church - ONLY in the context of the church resolving a dispute between two Christians.