Jails across the country are stretched thin due to staffing shortages, the opioid crisis, COVID and other factors.