How do you judge whether something you read on the internet, or in a magazine or a book, is literally true or not?
For that matter, what is your basis for picking and choosing which parts of the Bible are historically accurate? If you think it's all historically accurate, what's your basis for coming to that decision?
It is a little bit easier on the internet and current culture to cross-check sources, or discover whether this or that particular scientific study is accurate. Even then there is a lot of confirmation bias in the way that I judge something to be true. Even if I try not to, it is hard not to cherry pick sources that confirm what I already want to believe.
As for what is my own basis for picking and choosing what is historically/literally true, that is the million dollar question.
Whenever I have been asking people that very question, I frankly acknowledged I do not have a good answer to that.
My own intutition would tell me that people in the time of Jesus would have been able to accept the miracle of resurrection because they already accepted all the other miracles literally, like Jonah being swallowed by the fish, and Moses holding up his hand and winning the battle, putting it down and losing it, the miracles of Elijah, and Elisha, and the miracle of Hanukkah oil, and on and on. Jesus himself based having his resurrection supported by Scripture. I would take that to me not just Scripture being a miraculous prophecy of his life, but the basis for accepting the possibility of literal resurrection in the first place.
So here I am now, like many people, understanding the world to be billions of years old, and the history of mankind to be, well, complicated, to say the least.
I am not repeatedly asking that question rhetorically, as if I already had the answer. I am asking the question sincerely, because I don't have the satisfactory answer myself.