At the risk of going too far off topic, there is a distinction between Biblical inerrancy and Biblical literalism.
For example, Jesus says: 'You are the salt of the earth.' He doesn't literally mean his followers are Sodium Chloride molecules.
Diving deeper in one specific interpretive case, the Roman Catholic Church teaches that the Bible is Inerrant but the 'literal' interpretation is not always to be prefered.
This should be obvious because the Bible is not a book it's a library, and how you read it depends on which section of the library you are in.
For example, Jesus says: 'You are the salt of the earth.' He doesn't literally mean his followers are Sodium Chloride molecules.
Diving deeper in one specific interpretive case, the Roman Catholic Church teaches that the Bible is Inerrant but the 'literal' interpretation is not always to be prefered.
This should be obvious because the Bible is not a book it's a library, and how you read it depends on which section of the library you are in.