Raise an exception on inconsistent stream configuration.