Reduction of electrostatic turbulence in a quasi-helically symmetric stellarator via critical gradient optimization