That is where the fault indeed was, as well as with Galileo himself, as the encyclopedia article clearly states. The Tradition was not undermined by Copernicus, and Copernicus was not prosecuted at all. We have the same Tradition today, and we have more telescopes and scientists than we know what to do with. It was wrong for Galileo to veer into something akin to today's scientism, particularly with insufficient scientific proof. His opponents sometimes were Bible literalists and so were wrong as well, and the Church admits that.
It is however remarkable that you started on this thread demanding a literal scripture for Mary's immaculate conception, and now fault the Church for taking the Jericho battle account literally.