Nonrelativistic trace and diffeomorphism anomalies in particle number background