To medically retire due to mental health, even if over 8 years TIS, OP would need a potentially "Unfitting" diagnosis (some examples are PTSD, Other Specified Trauma and Stressor-Related Disorder, MDD, GAD, Chronic Adjustment Disorder).
Be advised about the "8-year rule", as it stands there is...