I think reach out to friends/ familly or even work/colledge mates and a therapist personally, i'll explain why below.
Building a support network of people close to you like friends and familly imperative. Even if they don't seem to help much or may potentially (accidentally usually) make you feel a little sad or anxious they at very least will keep you from doing silly things. This involves slightlt opening up to these people, you don't have to spill all the beans, though it is always better to say too much than not enough, and then just asking them if they have advice or can maybe do things with you. As I said sometimes people can accidentally misunderstand your issue and make you sad but having them be in the loop means that if you ever start cutting people off or outwardly expressing unhelpful emotions they will pick up and make you aware and make sure you dont go into worse place. I have experience with this, several times I have tried to cut myself off from the support group i had and a few times they sent someone to my flat, and would often check in on me lots when i was being less cut off.
Therapy in my opinion can be not but likely won't make you feel any worse. On the flip side if it works well it's amazing, I have ad shit therapists, I at least sort of just felt ignored by them, like I just strained them for an hour and it was a chore for them to try deal with me, but this is not how it feels when you get one that you can have good rapport with. Might take a while to find one but deffinetly worth looking into. Often times colledges/ workplaces can have free helpline/therapy resources, other places to try call is stuff like Samaratins (thats uk idk about other places) which is basically like a mental health advice help line/ suicide hotline, they can point you in the roght direction for help in a much better way than me probably.
Generally doctors haven't helped me much, i wouldn't reccomend unless your situation has physical effects. For instance if you are self harming phone a doctor immediately and explain in, or if like you have anxiety so bad you struggle to breath normally often, or an eating disorder, for all of these things it's really a good idea to phone a doctor. Also if the medication was working for you there is a chance it could be a very good to reconnect with the doctor that gave you them, an increase or even decrease in dosage can make a big difference with how they effect your mood. If you are anything like me though doctors will generally just pop you on some sub-par on-line resource so that, in my opinion, wouldn't be the choice. I have had meds before but like they suggested not drinking on them and I ignored it and often got into really sad dangerous drunk situations (I was on sertraline, it made me really sad while drunk and I think I blacked out fully like 10 times on itwhich normally doesnt happen to me so i assume it was the meds), so thats why meds never worked for me though I have never investigated into ones that work while allowing drinking cause i am really not into doctors.
Anyways this is just my tupence I am not the best source (after all i am on here). Reiterating I'd say reach out to friends, family, coworkers and or colledge staff/ mates to form a good network to keep yourself safe and maybe phoning a mental health advuce hotline for thier guidence, and probably looking into therapy could be useful. A way to potentially find a number for a suicicde hotline/ mental health advice number is to just google suiciced hotline in "area" it might come up on there.
Hopefully any of this helps a bit! Sorry for such a long reply!