Hi... Our mind is more powerful than we think it is, but it also has a physiological base. When the neuro-chemistry of the brain is hampered, it hardly matters what exactly is the cause.
The way you have explained it, it seems the cause is more psychosocial which can be addressed by therapeutic techniques like Cognitive Behaviour Therapy (CBT).
If the root is more biological/genetic in nature, medication plays a bigger role. But in your case, I suppose, the use of medication will be minimal.
Regulating a healthy routine in terms of proper and timely Meals, Sleep, Exercise, Breathing/Meditation will help you get back your control over your mind.
Please do not ignore these warning signs of your body and mind.
Next Steps
Start Counselling/Psychotherapy from a Psychologist. If required, take psychiatric consultation as well. Start practicing any Breathing Technique (Deep Breathing, Alternate Nostril Breathing) daily for 20-25 min morning and evening. Also, start any physical exercise/sport daily for 40-45 minutes.
Health Tips
To Seek my Services Online you can Google me or visit my Website (https://gunjanmaithil.wixsite.com/therapy)