I have a similar problem. I'm always pessimistic, stressful and anxious. After my job interview for a machine learning job, HR gave me a personaly test. It turns out that they were literally horrified by the results and told me that every response I made was the exact opposite they were looking for. I got the job nevertheless but mental issues do become a barrier in one's career. I knowingly try to be alone in the office, don't take any breaks and don't talk to anyone unless it's necessary. Haven't heard a complaint yet. But I would suggest to the opposite, communication is important.