Heresies were dealt with from the beginning of the Church, and the Church has dealt with those introducing false teachings through the ages.
Paul warned us this would happen, "For the time will come when men will not put up with sound doctrine. Instead, to suit their own desires, they will gather around them a great number of teachers to say what their itching ears want to hear. They will turn their ears away from the truth and turn aside to myths." (2 Tim. 4:34).
Martin Luther was one of these men Paul warned us about. He so wanted to believe in his view of salvation by faith alone that he tried to remove James from the Bible. "You see that a man is justified by works, and not by faith alone." James 2:24. You have to go through mental and verbal gymnastics to say the clear language of the Bible does not really say what it really says. This is one reason the Catholic Church protected the Bible in the early days. A hand written copy would be guarded as a treasure because of its rare nature, but more importantly to prevent false copies from circulating and supporting heresy.
Fortunately, we have Christs promise that heresies will never prevail against the Church. They will arise, endure sometimes for centuries, like Protestantism, but we can be confident in Christs promise that the Church will always teach the Truth.
“He so wanted to believe in his view of salvation by faith alone “
That’s good because that is EXACTLY what the Bible teaches.
Thanks
Q. How do we know the gates of hell will not prevail against the Church?
A. The bible tells us so. Of course, the Church developed the Bible.
You still haven’t found a verse that says what you claimed...