The issue is that agile was once (back in the days of the manifesto) a grass roots effort to make life for developers better, but in many companies it has been perverted and twisted from a framework for collaboration and self-organization to controlling and pressuring development teams in a fortnight cycle. Of course this gives Scrum a bad rep.
May an on-site therapist help more than just replacing attrition? If it would (in terms of net profits), many companies would have started to do so.