stop being afraid of losing people and remember you are also a great loss too. someone will spend the rest of their lives trying to search for someone with qualities like yours.
adult friendships have taught me that sometimes the person you regard as a “close friend” isn’t really your friend. and that’s okay, take your L and move on.