If God ever committed a mistake, it was giving humans free will to begin with
So much for an 'Infallible' God, then.
And as your 'God' isn't infallible: thus he is flawed & imperfect, therefore he is a contradiction to himself, seems that Capt. James T. Kirk's previous experience with Nomad served him well when dealing with him on Sha Ka Ree.
Kirk's logic is impeccable, you see: you are in grave danger.