As a Catholic, “…the books of Scripture must be acknowledged as teaching solidly, faithfully and without error that truth which God wanted put into sacred writings (5) for the sake of salvation” (
11Dei Verbum).
In other words, Scripture is divinely
inspired (God is a true author, along with the human authors) and
inerrant (it does not err on matters pertaining to our salvation).
Now, we have to be careful in reading Scripture, particularly the OT. We must interpret Scripture in the
literal sense, but that does
not mean we interpret it
literalistically.
Here’s an analogy. Say someone uses the phrase “It’s raining cats and dogs.” The
literal sense of that phrase (i.e. the meaning that the author intends to convey) is that it is raining heavily. The
literalistic interpretation would be that cats and dogs are falling from the sky at an alarming rate.
When the OT uses such descriptive phrases as calling God “jealous”, we must take care not to interpret this literalistically. It’s a figure of speech employed as the inspired author(s) attempt to convey spiritual truths about the infinite God.
I recommend taking a look at the Catechism:
CCC 101-141