You took first step
No matter how many other fine qualities you have, if you cannot control your angry words, you will end up losing both your friends and your family.
Get with your physician and from there to a sane counselor. There are behavioral tricks / thinks you can practice. I am very glad you recognize the need to change; too many lives are ruined because people are less sensible than you.