I have heard this contradiction a thousand times.
1. Pastors can't have friends at their church. It's lonely work.
2. Pastors must have accountability.
Why is this absurd? Real accountability requires real friendship in proximity. The lonely pastor, generally, is not good at being a friend and has bought the lie, "Nobody understands."
Pastor you can have friends and you don't have to be lonely.