Observation of gauge invariance in a 71-site Bose–Hubbard quantum simulator