There’s a great article here about formative rejection. It’s helpful to see that rejection is a way to build a relationship with an editorial team: if your name keeps popping up, they’ll know you.
For my part, I know I’m not crazy to keep trying. I’ve had editors write me notes, so that encouragement is at least something.