Playing BG3 with a competitive amateur friend is a DISASTER

Just entered act 3 playing with one of my best friend recently. This is my 5th playthrough, and first time for him. I told him this is a story driven RPG game that he doesn't need to minmax everything to finish it.

The thing is, when things went wrong, he, as a ranger, constantly complain about my wizard being "useless", and call it "shit class" during the entire act 1, despite the fact that I have saved his ass by my spells multiple times. He keeps saying "we would have beaten the game if you go warrior or barbarian instead of this shit class" after I explain the reason why we better have a caster for teamwork.

As my wizard became significantly stronger during act 2, he finally shut up for a period of time. But when things go wrong, he SUDDENLY get mad at me and start complaining about my wizard again. I was like, "bro we are playing a story driven PVE game, why are you so obsessed about acting like you know this game better than me? Are you so desperately eager to prove something or what?"

It wasn't even about minmax or play style, it was that it seems like he tried hard to prove something, even shitting on me, for no reason, and acting like he, a newcomer, knows this game better than me, a veteran player.

We basically stop playing this game after that due to his maniac jerk attitude. I don't know if his egotistic attitude in video games has something to do with his "inner self" or something, and he is always a really nice guy in real life, but this toxic loser attitude is not something I can tolerate. Of cause no one is perfect, but it almost made me despise and question his "nature".