I can imagine your scenario, it's an interesting enough thought for some dystopian fiction, but I don't think the clear one-to-one analogy between an infectious disease and crippling depression work in any way at all. In the COVID case, it's an infectious disease with some possible long-term damage, high rate of infection, relatively moderate risk of death, and a scramble to try to contain or slow the spread. I don't see how any of that can be compared to depression, a non-contagious disorder that very often destroys all quality of life in the sufferers.
Honestly, I don't see any gain in this incredible pessimism. A brain implant seems to have some potential to allow some people to have hope in successfully living a life that isn't controlled by a cloud of grey, and the first worry is in a dystopian government using it to brain control the public, because there is a pattern of behavior in how governments desperately tried to control a pandemic in the past?