You're probably not going to like this response.
First of all, I think your attitude is terrible. Equally as terrible as your teacher's by the sounds of it...
Going around a forum whining about a bad experience feeling sorry for yourself is not going to help you progress. So you had a bad piano lesson, let me know when you get some real life problems...
You said you want to be a great pianist, assuming you mean professionally, you would have surely done some research and know that it's a cut throat industry where only the very best truly succeed, the hardest work and determination is required along with true confidence in your ability.
To work hard, to be the best, you need to accept you should rarely EVER be truly satisfied with how you play, and if you are happy, you've either gave a performance of a life time, or you're wrapped in a little comfort bubble that needs to get burst.
If your teacher said these things, It should be presumed that your teacher also told you why they thought this?
In lessons, in anything, there are two roles to be played; a teacher needs to teach, they need to give information, they need to lead without control, they need to help keep routine and check progress.
A student also has a role, to learn, to be willing, to understand and accept their imperfections, to overcome these.
Is there such thing as a perfect student? A perfect teacher? Unlikely and so there are 2 scenarios.
1- You find a new teacher, one that will provide more constructive feedback about your playing (not just telling you what you want to hear, or insulting your ability)
2- You become a better student, Ask your teacher questions, challenge their comments and build a better relationship with your teacher, get them to play the same sections.
Too many complaints about teachers I'll never understand because If I have a problem with my teacher, I'd tell them, If it cannot be resolved, I find another.
Worst case? I find a worse teacher and I go back to my original one. Piano teachers have a passion to teach, that is true, But the reality is, it's a business, and 9/10 times they wouldn't be teaching if you're not handing over the money.