maybe _check_epochs_compat is more informative