The problem with the bible is that it purports to be a direct recounting of historical events. People like to refer to indigenous mythologies (because that is what the bible really is) as fiction, but they aren't exactly. They were always intended to be direct recountings of historical events, or, if you will, a fiction disguised as a historical record. Mythologies are lies, and they have always been lies. Sometimes they are well-meant "white lies" that use fictional narrative as a way of explaining the unexplainable to people. Over time, these white lies become black as the the priest and warrior classes used myths to obtain power. The point is that the fiction itself isn't a lie: the lie comes about in how the fiction is portrayed as historical rather than fictional.
That being said, mythologies are always lies even when the intent isn't to deceive. They misrepresent what they are to truthfully explain the nature of the world, and that's the fundamental question when it comes to drawing the line between creating a fiction and creating a lie. Another way to frame the distinction is that a standard fiction has a completely invisible creator, a mythic fiction has a false creator: myths are the historical record of an artificial witness. As long as there has been storytelling, there has always been a clear separation between myths and other fictional narration devices like poems, prose or plays, with the staging of the fiction acting as a frame for its purpose.
Fiction ≠ Lie
Myths/Bible = Fiction
Myths/Bible = Lie