Besides all the technical problems that a musician has to deal with, the main obstacle to overcome during a performance is the fear of failing in front of an audience. In particular, pianists have to deal with memorization, as nowadays they are required to learn the whole concert by heart. The fear that you might play wrong notes or even stop often can affect the quality of the performance. Many pianists who cannot live with this stress give up the performing career, preferring to teach rather than to perform. On the other hand, excitement can positively affect playing because it gives the performer more incentive and adrenaline.
What makes for negative experiences often are pressure from teachers or loved ones, as well as excessive desire for success. The most common error is not to enjoy the music and instead to seek joy in success because the pianist no longer focuses on the beauty of sound, and subsequently he loses control of the performance.
The best solution to anxiety is to enjoy every single moment of what you are doing or playing. The pianist should avoid external stimuli and thoughts that might tempt or deviate him from the main objective. This is perhaps one of the main principles of yoga and meditation, disciplines that are useful not only in music but also in life.
In addition, temperament, patience and dedication play key roles in completing the countless hours of study per day required to achieve an acceptable quality of performance. This is sometimes easier said than done, but I believe the recipe for a successful concert is hard work and meditation.