Have a text area that checks if the config is valid on each key stroke, if not rollback to the previous one. Can put some red ink under it explaining why you can't do that.
Trying to remove a required number the last remaining digit is highlighted so that you can type over it.