Raise an error if invalid options are passed to .config