It's still too early to say what will the outlook be like in the next ten years, wrt to AI, but one thing I am perfectly sure of is: AI will always produce 'errors' due to the fundamental fact that it's heuristics-based.
Maybe fewer and fewer, but the mistakes will never be totally eliminated. This is why those wanting to learn how to write software shouldn't get discouraged that 'Oh, AI will replace human programmers'.
I fail to see why this is a good argument against AI replacing humans, given that humans also produce errors.