Change who's around you.
Plan B, try to change how you let them affect you. Easier said than done, but very effective when pulled off.
The perspective shift is this: if they bully you, tease you, put you down, and you get angry and sad, notice that you let them decide your feelings. Instead, view what they say, as something that says more about them than it does you.
Source: I struggled with bullying. I'm still considered odd, but that I'm OK with that.
That's maybe something I think is sus. If it's at all possible, make a before-rebase branch, and make a small change in a rebase, check that the results are the same, then do another. I wrote git-test specifically for this work flow. (it runs tests, but only if the tree is one or hasn't seen before)
https://github.com/spotify/git-test