Stop kidding yourself, please. Yes, you are taking a drug. The weed isn’t helping you one bit. In fact, although it may make you feel a bit better, it is probably contributing to the problem.
You already know that you need help. That’s why you wrote to us. Now please follow your own good instincts and get the help you need and deserve. Start with a complete medical check up to make sure there isn’t an undiagnosed medical issue that is part of the problem. Do be honest about how often you are smoking weed.
Then ask your doctor for a referral to a licensed therapist. The first thing that will happen is a thorough evaluation. Then you and the therapist will talk about the therapist’s recommendations.
Medication may or may not be recommended, but it is at least something to talk about. (A course of prescribed medication will probably do more for you than marijuana.) But even more important will be getting to the root of your feelings and providing you support to take the necessary steps to change your life.
Please follow through. You are only in your 30s. You can have decades of good life ahead of you if you take care of yourself by getting the help you need.
I wish you well.