I have a similar issue and while it's gotten better for me, it does take work!
I'm not sure why folks on this forum always seem to just not bring up that therapy and counseling is a thing, but hey, therapy and counseling is a thing, and a thing you should peruse if you're having self-confidence issues in general. Often, reactions we have to situations can be a symptom of something bigger, that can be more easily tackled when you have the help of a profession. (For me, it's anxiety, and for you, maybe it's depression? Since you mentioned it in your post.)
I know therapy is not cheap, but many doctor's offices have an intern or student therapist that you can see for free, and you help them with their degree! I've worked with exclusively these types of therapists for a few years now and gotten great results. It's important to work on your self worth outside of this kind of thing and I think you may find by working on it, your reaction to criticism or bad comments may improve.
That aside, here's some other stuff I found has personally helped me:
-Laugh about dumb critique in private. Some "critique" people give is just totally out of touch and off base and an easy way to digest that is to simply make fun of it, because it's ridiculous. Share the comment with a friend and crack some jokes. Keep it private though!
-Understand that even negative comments are feeding the algorithm, and the dumbass who gave you hate is actually helping your work get in front of more people. They're doing the work for you, even if they are being mean. This is the same reason you'll hear Youtubers say "Go ahead and give this a thumbs down if you don't like it" because many algorithms right now feed off only engagement, and not ratings or positivity. This is absolutely true of Tapas, it doesn't know what a comment says, it just says, "Yay, a comment!"
-I think it's important to keep feedback in mind, but understand some feedback is not given in good faith. A comment of "this sucks" is always worth deleting while a comment of "I think x should be improved, it's hard to read" comes from a more genuine place. What's helped me see that is that I think of these comments where folks see where I can improve as "free EXP" to make my project better in the long run, and often times thanking someone who cares about your work like that makes them more endeared to your project.
-You can't please everyone all the time, but you can focus on making story you like for yourself. I just think this is important in general. Also, please remember you're not alone, a lot of us are out here struggling with this kind of feeling-- so hey, maybe reach out and leave some nice comments on other folks work? Spread positivity when you're feeling shitty from a weird comment you got? Instead of lashing back with anger, lash back with UTTER JOY towards projects you enjoy and lift them up. We really don't need to give any time to folks who wanna be negative just cuz.
I hope that helps and hang in there!