There are two main problems with people who think they're brilliant jerks.
i) They're jerks
ii) They're rarely as brilliant as they think they are.
People have this weird misconception that their work stands alone, independent of them or anyone else, and so it doesn't matter if they're a jerk so long as the work is good. This is wrong. When you're a jerk you lower the quality of other people's work.
For example, a jerk doctor is less safe than a non-jerk doctor. https://www.civilitysaveslives.com/academic-papers-1 And https://scholar.google.co.uk/scholar?q=civility+patient+safe...
> Tell me HN, what do I do?
Work out why you're a jerk; work out why you think it's acceptable to be a jerk; work out how to fix it; then fix it.