You're not obligated to maintain a relationship with anyone who treats you poorly.
No mentor, friend, or relative deserves unconditional loyalty. Past help is not an excuse for present harm.
If they're having a negative impact on you, you don’t have to keep them in your life.