Exploring plasma stability and confinement with high resolution density measurements on the ZaP-HD Flow Z-Pinch