I think the notion of a creator punishing us for being what we were made to be, a flawed, mortal, seeking, searching often failing entity, is inaccurate.
A loving god is possible. So is a sadistic one. Since no book can objectively make a claim of being the one truth, it behooves each of us to find our own path.
We're going to make mistakes. It happens because we do not know the answers
(actually, we make mistakes as soon as we believe we do).
If there is a god, god has to own the fact that we were made with flaws.
I don't punish a dog because it cannot fly.
our punishment for our errors is having to live our life in the face of them.