In a relationship, you support and take care of your partner. But if you aren’t healthy, you aren’t in a position to take care of the other person.
So take care of yourself first. It isn’t selfish to do this. It’s necessary for your well-being, and it’s necessary for the long term health of your relationship.