One possibility is that you are so concerned that someone might be rejecting you that you reject them first. As you have already discovered, your angry reaction may make the person go away for a time but it also damages the relationship.
More important that labelling what you are doing is learning how to respond differently. First, consider whether it really matters what the other person thinks about you. Someone doesn’t need to be a good friend to be an important resource. Good examples are your teachers and consultants. It is enough that you are mutually respectful and get the job done. Your worth is not dependent on such people liking you.
With friends, it’s another story. Expressing anger with angry words doesn’t do anything to solve the problems. Instead, you need to learn how to have a civil conversation about it when people disagree or don’t meet your expectations. My guess is that sometimes your expectations are unreasonable (like maybe an unreasonable idea about how often someone should answer your phone calls). Sometimes you may simply have a different point of view and that difference makes you anxious and angry. In that case, you need to learn how to keep emotions out of it while you and your friend try to clarify the problem and maybe come to a compromise.
Your anger isn’t necessarily a personality problem. More likely it is due to not having skills you need to learn. There are books that can help you with this. If you can’t figure it out on your own, some sessions with a mental health counselor might be helpful.
I wish you well.