The Church is the Mystical Body of Christ, and has endured bad popes, had more than one pope at a time, and even no pope. When you have endured 2000 years, stuff happens. Oh, you wouldn’t know that.
Catholics claim the pope is the “vicar of Christ”. Except when he’s not I suppose. I watch as excuses, defences, and attempts at explaining away the acts and actions of those so call “vicars of Christ” yet Catholics will condemn every Protestant for the actions of some Protestant preacher or group. The double standards are astounding.