Crazy as it sound what really helped me when I had depression + bad anxiety (apart from regular meds and therapy) was buddhism?? Like if you follow it pretty strictly you find a lot of your self destructive tendencies stop and like
Its kinda teaches you ways to deal with pain and stuff that life throws at you
Idk