The ranks of caregivers at dozens of nursing homes plunged to dangerously low levels on some of the deadliest days of the pandemic, undercutting care for vulnerable residents at these facilities, according to a Wall Street Journal analysis of new federal data.