Mental Health (Bipolar) and Army Reserve Service

So I'm in a bit of a catch-22, and need some advice.

I got out of active duty and transferred to the Army Reserve. While leaving I got treatment for depression and had a surprise diagnosis of Bipolar disorder.

I have had 2x PHAs since leaving active duty and no red flags raised. According to AR 40-501, it's criteria for discharge. Did the contractors err in not profiling me? Is this a discussion I should be having with my chain of command?

I love serving and I hate the idea of quitting or thinking I'm failing the team. (It's a very irrational feeling. I know).