Mitigation of surface contamination from resist outgassing in EUV lithography