Hair loss advice??

Aside from discontinuing this medication, is there anything that can be done to prevent hair loss?? Not sure I am ready to go off it, but my hair loss is becoming overwhelming

I have had a lot of success on the medicine for my mental health this last year, as well as significant weight loss (about 25 lbs!). However, I think it is the reason I am losing my hair, I know I’ve seen others having this issue. It’s getting to the point that I am so upset over my hair, it’s almost not worth it anymore. I am a woman in my 30s and it makes me so upset everytime my fingers are full of strands of hair.

My concern is obviously my mental health worsening, but I also really don’t want to gain that weight back. I know that weight loss isn’t a reason to stay on a medication but I can’t help but be concerned about that.

My question is - is there anything that has helped hair loss with this medication aside from just going off it?? I’ve been taking nutrafol, though admittedly not everyday. I just don’t know what to do :/