Spectral analysis of dispersive shocks for quantum hydrodynamics with nonlinear viscosity