The program, in an aging building at Naval Medical Center Portsmouth in Virginia, has struggled to retain employees.