@sand
Build confidence over time by providing better opportunities for success and then recognizing those successes. Let the child feel the satisfaction to generate self-motivation.
Don't focus on failures as much, the child already does that.
And remember that everything thing is a phase and may soon pass for some new behavior that causes you frustration.