raise ArgumentError on invalid reset mode