How to deal with professor?

I'm doing master's degree at the moment. I am doing amazingly in all of the 10 subjects except from 1. The professor just doesnt like me and its not just me saying it, everyone noticed it. Every lesson he spends talking about me, picking on every mistake i made, saying how I dont belong at this University (i did Bachelors in another City), how his students are, i quote, elite, how i dont know anything, how my language im majoring isnt up to level etc. This has been every class, 1 hour and 30 mins, once a week for 7 months now.

Well, today he took my translation, more like ripped it out of my hand, and decided to read every mistake i made. I made the translation in a bad state and i am aware it was bad. He also asked me basic gramatical questions and some stuff but because my mind was hazy i couldnt remember it in the moment, of course he didnt believe it and kept talking about how i shouldnt be here. I am fine with constructiv criticsm. Id even be fine with this if he would do it for everyone. But he picks on me. So today i just decided to get up as he was insulting me and i got out. He told me to sit, and I just got out. Well, i put down next assigment on his table cuz he didnt want to take it and then walked out. Honestly, it felt good. But i dont want to attend his class anymore and idk what to do. He has been threatning to fail me all the time too. I cant get the degree without passing his subject. Another University isnt an option (very complicated to explain, but basically another University doesnt offer this degree and i would have to pay A LOT of money to switch while im doing this free because of my high s ores).