With God’s assistance, man is infallible as well. Otherwise, the Scriptures could have never been written in the first place, right? They’re free from error and were written by men inspired by the Holy Spirit.
With the same Holy Spirit, man can be an infallible teacher. Infallible doesn’t mean perfect. It means free from error. God has established this charism of infallibility in His one Catholic Church, with the office of Peter, and the Magisterium. This charism of infallibility was never promised outside of God’s Catholic Church.
In fact, this teaching Church came before the New Testament was written. It came to be called Catholic. This infallible teaching Church wrote the New Testament. This infallible teaching Church assembled the canon of Scriptures in 382 into the full 73 book Bible. This infallible teaching Church established by Jesus is the pillar and foundation of the truth. How can you be the pillar and foundation of the truth unless you’re infallible? Something to think about, and I hope you do.