These are the exact points that we work on. DD has been taught that she has a job, make an out or put her teammates in a position to do so. If an error is made, frustration and blame do not help her do her job for the next at bat. So move on to the next play.There is a lot to unravel in your post. but to this specific question, Confidence, Mental Toughness (the ability to re-focus), Understanding and Maturity.
This mentality has helped her find opportunity for growth in even the most brutal games. It allows her to stay engaged and working in her performance.