Isn’t that like a person getting a bogus $20 bill, realizes that it’s bogus, yet tries to pass if off anyway????
I think he’s saying that it’s not the actual true word of God, but still teaches valuable lessons about right and wrong.
But I could be mistaken.
I think Ehrman is saying that even though his scholarship persuades him that much of the Bible isn’t literally true, there is still much wisdom in it and we can learn from it.