Field Quality Measurement of a 4.2-m-Long Prototype Low-$\beta$ Nb$_3$Sn Quadrupole Magnet During the Assembly Stage for the High-Luminosity LHC Accelerator Upgrade Project