Most people, I inclusive, do not like always like to hear the bitter truth but having someone tell it to us in our faces can go a long way to helping us seeing them.
Since you've realized that your straightforwardness has led to you having issues and break ups with your friends, it's good that you have found a way around it.