What is then needed for something to be considered factual?
/u/textandtrowel posted a very helpful answer about how historians read holy books / religious texts two days ago, which you should definitely check out :)
Historians rarely take religious texts at face value - but we don't take any texts at face value, and always read multiple sources in conversation with each other, and with other kinds of evidence, to get a full picture or what happened.