There is so many half truths to that posting it would take far more time to unknot it than I wish to invest.
Yes, when the Books in the Bible were authenticated as the true written Word of God based upon infallible Petrine Authority in AD 382 in he Synod of Rome (these books did not fall from the skies and self assemble themselves), apparently up until the Protestant Reformation ELEVEN centuries later, the Catholic Church’s teaching was less than infallible. Somehow that infallibility for teaching ONE truth suddenly disappeared along the way.