It is a nervouse disorder, usually related to stress physical or mental, e.g. burnout, too much overwork, sleep deprivation, etc., resulting in symptoms like depression, anxiety etc.
As far as pills go, antidepressiva (e.g. Citalopram, Sertraline etc.) , antipsychotics (schizophrenia) or anxiolytics ( for anxiety-related disorders) can be prescribed.