You’re taking this too personally. You must realize it’s not you, right? Laugh it off. I guarantee some day soon you will be telling stories about the worst prof you ever had. And as others have said, this is a valuable lesson for you. You will have to deal with jerks in life. Now is a good time to start.