You could be REPLACED in people's life, not because you are not good enough, but because they no longer find you appealing and that's just HUMAN NATURE. It isn't your fault!. You could be replaced with someone big or small.
Don't stop working.
Don't stop doing.
Don't stop gaining leverage and capacity.
Don't stop being kind.
Keep at the right attitude to work.
Keep at doing good.
You could be the man for the Job and still be replaced and that's just fine.
That's just how people are and how life is. You are super amazing and important. If you are in these shoes, I'm so sorry you had to go through this. I pray the Lord Almighty will set your feet on the right path again but even at that you could still be replaced.
Your mental health is more important than your job title, your social media presence, making people happy, and what people think of you.
Take good care of your mental health by avoiding anything that triggers it.