There are no errors at all in Sacred Scripture on any topic, whether, faith, morals, salvation, history, geography, chronology, science, math or any other. This has been clearly taught since the time of the early Church fathers.
The primary object of the inspiration of Sacred Scripture is things pertaining to salvation. However, infallibility and inspiration extend to every subject, even in some sense to the words themselves:
St. Gregory Nazianzen: We however, who extend the accuracy of the Spirit to the merest stroke and tittle, will never admit the impious assertion that even the smallest matters were dealt with haphazardly by those who have recorded them…
St. Clement of Rome: You have studied the Holy Scriptures, which are true and inspired by the Holy Spirit. You know that nothing contrary to justice or truth has been written in them.
St. Justin Martyr: But I shall not venture to suppose or to say such a thing [that the Scriptures err]; and if a Scripture which appears to be of such a kind is brought forward, and if there be a pretext [for saying] tht it is contrary [to some other] since I am entirely convinced that no Scripture contradicts another, I shall admit rather that I do not understand what is recorded, and shall strive to persuade those who imagine that the Scriptures are contradictory, to be rather of the same opinion as myself.
St. Jerome: I am not, I repeat, so ignorant as to suppose that any one of the Lord’s words is either in need of correction or is not divinely inspired
St. Augustine: I think it is extremely dangerous to admit that anything in the Sacred Books should be a lie… If we once admit in that supreme authority even one polite lie, there will be nothing left of those books, because, whenever anyone finds something difficult to practise or hard to believe, he will follow this most dangerous precedent and explain it as the idea or practice of a lying author.
St. Augustine writing to St. Jerome: For, I admit to your Charity tht is is from those book alone of the Scriptures, which are now called canonical, that I have learned to pay them such honor and respect as to believe most firmly that not one of their authors has erred in writing anything at all. If I do find anything in those books which seems contrary to truth, I decide that either the text [particular copy] is corrupt, or the translator did not follow what was really said, or that I failed to understand it.