Have a pattern.
They will be unkind to you 10 times, and kind to you once. So that they can lean into that kindness and make you feel worthless 10 more times.
It happens in so many relationships of all kinds that it isn’t funny.
Here is my advice: Go build yourself. Go surround yourself with right people. Run away from wrong people. Even though they will always make you feel you are wrong, and spineless. Even if they call you names and question your character.
The safest people will always love you like a human being and not like vending machine, even if (especially if) you have made a massive error