Eze 22:26 Her priests have violated my law, and have profaned mine holy things: they have put no difference between the holy and profane, neither have they showed difference between the unclean and the clean, and have hid their eyes from my sabbaths, and I am profaned among them.
We have the advantage of God's Law revealed explicitly to us: we have our shepherds who guide us in knowledge and understanding. That's why we refer to the obligation of conscience to think with the mind of the Church.
What do you do when the shepherds are themselves sexually devient and profaners of the Law of God?
Unfortunately, not so among some of their members. A very tiny amount.
I've never, to my knowledge, had a pastor who was sexually deviant or a profaner of the Law of God. It would be a most painful situation.
If he were (say) a criminal abuser, you'd be better advised to go to the police before you went to the bishop.
If he were doing something not covered by secular criminal law, like teaching heresy, you'd have to do like the Lord says: (Matthew 18:15-17) "... go and show him his fault, just between the two of you. If he listens to you, you have won your brother over. But if he will not listen, take one or two others along, so that 'every matter may be established by the testimony of two or three witnesses.'If he refuses to listen to them, tell it to the church; and if he refuses to listen even to the church, treat him as you would a pagan or a tax collector."