Foreman upgrade from 3.7.1 katello 4.9 to 3.8 katello 4.10 fails with pulpcore-manager migrate error

Looks like another user hit this issue but on rpm_modulemd instead of rpm_package : Upgrade to Foreman 3.8 / Katello 3.10 fails "Found wrong number (0) of constraints for rpm_modulemd(name, stream, version, context, arch)"