The Massachusetts government’s top auditor told University of Massachusetts Amherst officials that a plan to eliminate more than 100 state jobs likely violates the law.