Sounds like the problem isn't you. The teacher appears to be failing at their job. They are to motivate, educate, inspire, assist and equip you with the skillsets to accomplish things in life. Complaining and belittling is not remotely part of the job description.
No one is good at everything. In life even the best fail. You either practice more, work harder or tolerate it long enough until you find the things you enjoy and are good at. Best wishes my friend.