Raise NotImplementedError for unequal frequencies. Fixes #7884