ERROR: better expection for passing a MS frequency (GH5332)