Raise NotImplementedError for unequal frequencies. Fixes #7884

fixes #7884