Yes, I don't know if people realize this. But being dismissive about the impact that this sort of suffering can have on someone's life is a form of shaming, or at least definitely moving into that general area.
And to suggest that taking necessary medications as prescribed is a breach of lay precepts is just ridiculous and offensive to those who take them and need them. For many people practicing Buddhism is a lot more within reach if the head is more clear. I think this whole idea is insensitive. Let's not blame people who live with mental illness for their symptoms. Thanks.
Conquer the angry man by love. Conquer the ill-natured man by goodness. Conquer the miser with generosity. Conquer the liar with truth. -The Dhammapada