>>555212There's actually a term for this, biblical inerrancy. The belief that the entire canon is inerrant is not one I personally share, although I do for some books in it.
Some Christian denominations have a different canon than others, meaning they include/exclude books that others don't.
Some books in the bible do not themselves claim to even be the word of God, or a prophet. Am I a heretic if I say that Paul the apostle, who wrote most of the books in the new testament, which were actually letters to early churches later included in the canon, is not flawless?
What is most important is that you accept that Genesis and the rest of the five books of Moses is a literal historical account of creation and the world's history, God is real and you should fear him, everyone will be judged after death, and everything regarding Jesus in the gospels especially the words he actually spoke himself.