Perhaps we have to begin by admitting that, word by word and line by line, Scripture is not absolutely inerrant.
Be careful. This is heresy.
If you say that Scripture is not absolutely inerrant, then you must agree that Holy Mother Church is fallible. Then you have neither Scripture nor Holy Mother Church as your final authority, and have thus created your own religion. I’m sorry if this seems a little harsh, but ultimately it is true, even if you do not realize the implications.
Recall the words of the holy successor of Peter, Pope Leo XIII:
*It will never be lawful to restrict inspiration merely to certain parts of the Holy Scriptures, or to grant that the sacred writer could have made a mistake. Nor may the opinion of those be tolerated, who, in order to get out of these difficulties, do not hesitate to suppose that Divine inspiration extends only to what touches faith and morals, on the false plea that the true meaning is sought for less in what God has said than in the motive for which He has said it. (Denz., 1950) * -From Providentissimus Deus, as quoted at newadvent.org/cathen/08045a.htm.
That does not mean that every passage is meant to be taken literally…but whatever the author intended to convey is true. If the author did intend to convey history, then it is true history. (But it is not always the case that the author wishes to convey history…such as in parables).
Since we know that Scripture is without error, we must then assume that all the supposed ‘errors’ in Scripture are simply a result of the misinterpretation of fallible men. Every accusation that has been made against Sacred Scripture has been answered at one point or another.
God had to keep His people pure. They did not yet have Christ, and it was so easy for them to fall astray (though it often is for us as well ). There were so many temptations around them, among the pagans, with their evil practices—so God had to set down the Law to protect His people from corruption. These sorts of laws did just that—kept Israel pure, consecrated for God. God is Love, and the Old Testament shows a God who loves His people dearly as well. (Song of Solomon, for example, is seen as an allagory of God’s love for Israel…Psalms certainly makes God’s love very clear as well…but it is throughout the OT). But we must also remember that God is holy. His holiness is perfect and absolute, and He can not tolerate sin. It is only out of mercy that every single one of us is not damned. People who claim that the God of the OT was wrathful the the God of the NT is love seem to forget the statements of judgement that Christ made as well…or the fact that the Church is instructed, in several places in the NT, to exclude (excommunicate) serious unrepentant sinners from the Church.