Don’t forget spite. The guy was always an asshole but when people finally started calling him out he got triggered and became a raging asshole. Now he thinks that he found his people but doesn’t realize that they hate him too, they just find him useful for the moment.
What I see is an inexperienced developer who instead of systematically debugging the issue keeps trying random stuff hoping that it will somehow work.