City officials said staffing shortages and outdated record-keeping systems contributed to budget errors that have grown since 2020.