Keep in mind Leo XIII's Providentissimus Deus. He was speaking about the exact topic you are debating...The literal interpretation of scripture.
To understand how just is the rule here formulated we must remember, first, that the sacred writers, or to speak more accurately, the Holy Ghost "Who spoke by them, did not intend to teach men these things (that is to say, the essential nature of the things of the visible universe), things in no way profitable unto salvation."(53) Hence they did not seek to penetrate the secrets of nature, but rather described and dealt with things in more or less figurative language, or in terms which were commonly used at the time, and which in many instances are in daily use at this day, even by the most eminent men of science. Ordinary speech primarily and properly describes what comes under the senses; and somewhat in the same way the sacred writers-as the Angelic Doctor also reminds us - `went by what sensibly appeared,"(54) or put down what God, speaking to men, signified, in the way men could understand and were accustomed to.
19. The unshrinking defence of the Holy Scripture, however, does not require that we should equally uphold all the opinions which each of the Fathers or the more recent interpreters have put forth in explaining it; for it may be that, in commenting on passages where physical matters occur, they have sometimes expressed the ideas of their own times, and thus made statements which in these days have been abandoned as incorrect. Hence, in their interpretations, we must carefully note what they lay down as belonging to faith, or as intimately connected with faith-what they are unanimous in. For "in those things which do not come under the obligation of faith, the Saints were at liberty to hold divergent opinions, just as we ourselves are,"(55) according to the saying of St. Thomas. And in another place he says most admirably: "When philosophers are agreed upon a point, and it is not contrary to our faith, it is safer, in my opinion, neither to lay down such a point as a dogma of faith, even though it is perhaps so presented by the philosophers, nor to reject it as against faith, lest we thus give to the wise of this world an occasion of despising our faith."