Walking away shows you are strong, because it can be so hard. So many emotions to deal with. I had to cut a friend out of my life, because she was affecting my mental health and well being to the extent, that if I had stayed friends with her, I know
I would of ended up in hospital. She was very manipulative and even though she had a good heart (she was not a user and thoughtful) unfortunately her other traits overshadowed her good ones by far. I think you did the right thing, sometimes making boundaries are tough, but self care is very important and walking away from toxic personalities or situations is always a good step in the right direction.