I think there are in the Scriptures scientific, historical… errors, but they’re there used, assumed as vessel, vehicle, to pass a message, and as such are part of the inspiration, though incidental to it.
The actual teaching of the Church is that since God is the principle author of Holy Scripture, Holy Scripture is without error of any kind whatever whether of a religious, science, or historical nature. To admit error to Holy Scripture is to admit error to God which is not only inadmissible but impossible.
From PROVIDENTISSIMUS DEUS
ENCYCLICAL OF POPE LEO XIII
ON THE STUDY OF HOLY SCRIPTURE
But it is absolutely wrong and forbidden, either to narrow inspiration to certain parts only of Holy Scripture, or to admit that the sacred writer has erred…For all the books which the Church receives as sacred and canonical, are written wholly and entirely, with all their parts, at the dictation of the Holy Ghost; and so far is it from being possible that any error can co-exist with inspiration, that inspiration not only is essentially incompatible with error, but excludes and rejects it as absolutely and necessarily as it is impossible that God Himself, the supreme Truth, can utter that which is not true. This is the ancient and unchanging faith of the Church, solemnly defined in the Councils of Florence and of Trent, and finally confirmed and more expressly formulated by the Council of the Vatican [Vatican I]…
It follows that those who maintain that an error is possible in any genuine passage of the sacred writings, either pervert the Catholic notion of inspiration, or make God the author of such error.
POPE BENEDICT XV in the encyclical SPIRITUS PARACLITUS on St Jerome reiterated the teaching of Pope Leo XIII. POPE PIUS XII in the encyclical DIVINO AFFLANTE SPIRITU follows his predeccessors and reiterates what Pope Leo XIII said in the above encyclical that freedom of error of whatever kind in Holy Scripture is solemnly defined by the teaching and councils of the Church. After quoting Vatican I, Pope Pius XII says “… this solemn definition of Catholic doctrine, by which such divine authority is claimed for the “entire books with all their parts” as to secure freedom from any error whatsoever”.
How we are to interpret difficult passages of Scripture or genres or what appears to be ‘scientific error’ , for example, the sun rising or setting (which we still use today), the above encyclicals go on to explain. I recommend reading the above encyclicals to which Vatican II points us too and more in the dogmatic constitution on Divine Revelation.
I also recommend from Fr. William Most “Free From All Error: Authorship, Inerrancy, Historicity of Scripture, Church Teaching, and Modern Scripture Scholars” which can be found online at the following link:
catholicculture.org/culture/library/most/getwork.cfm?worknum=216
“And if in these Books I meet anything which seems contrary to truth, I shall not hesitate to conclude either that the text is faulty, or that the translator has not expressed the meaning of the passage, or that I myself do not understand.” (St Augustine)