For that reason we know Paul was in the right.
That is confusing to me because writing is part of their actions.
This is not as complicated as you’re making it. No human is sinless. But the Scriptures had to be error free. Therefore believing men who were willing to be used of God recorded Scripture, but it was the inspiration of the Holy Spirit that guided their thoughts and words. That experience didn’t create a single sinless, perfect man. It only produced inerrant Scripture because at the time of the writing the authors submitted themselves to the divine guidance of the Holy Spirit.
I’ve never met anyone who struggled so mightily with this concept. Has no one ever spoken to you about the Holy Spirit before?