Friendships are sometimes not for ever, either because of you or because of the other person. We all are human and have many different reactions to different aspects of life and friendship so to speak.
It’s not the end of the world when you loose someone you thought was a friend, maybe it’s a new beginning and you will turn to friends that shall become closer friends