Mitigation of plasma-wall interaction during quasi-single helicity states in RFX