The reason why you always end up being sad is because you keep holding onto other people.
You depend your happiness on how they treat you, how they assure and validate you when in fact, you should be thriving hard to know these things even without all these temporary people.