mne_connectivity.spectral_connectivity_epochs results in error after upgrading MNE: requires no reference

MNE_version: 1.5
mne-connectivity: 0.5
System: Windows 10

So I have recently upgraded my mne version from 1.1 to 1.5. However, after the upgrade exectution of my code for computing spectral connectivity yields an error.
if _electrode_types(info) and info.get(‘custom_ref_applied’, False):
raise ValueError('Custom EEG reference is not allowed for inverse ’
‘modeling.’)
I checked the error and noticed that the error could be caused by the fact that the function _check_reference is called within mne.minimum_norm.inverse. apply_inverse_epochs_gen from versions 1.2> while this wasn’t the case in 1.0 and 1.1.

What are the implications of this change and how do I make the following code work in current version of MNE?

con = mne_connectivity.spectral_connectivity_epochs(
        label_ts, method=con_methods, mode='multitaper', sfreq=sfreq, fmin=fmin,
        fmax = fmax, faverage=True, mt_adaptive=True, n_jobs=-1, verbose = 'ERROR')

My reference is set to average projection:
raw.set_eeg_reference(projection=False)

I solved this by setting projection = True and applying the projection with apply_proj later.

But in my opinion the error should not be raised when setting the projection to False as the data manipulation is mathematically not different. Setting the projection to False and using average reference, will always yield an error now, because the reference is not recognized as such (but as custom reference). This is confusing to me and perhaps other users as well.

I highly recommend updating this in the next version of mne.