A good start would be outlawing negative scoring of candidates due to gaps.
https://www.theatlantic.com/business/archive/2013/04/the-ter...
For every gap there's missed yearly/quaterly reviews, there's missed opportunities for promotion, and there's a stall in your compensation growth overall. When you come back to work you typically come back at the wage you left.