I think this is caused by this pulp_rpm issue: https://github.com/pulp/pulp_rpm/issues/2528
Looks like this was fixed in pulp_rpm 3.17.7.
pulp_rpm 3.17 is available as far back as Katello 4.3, but only at version 3.17.5.
If this could be updated here to include the latest pulp_rpm bugfix release, then this issue should go away after the next yum update.
Not 100% certain this is the same issue, but it does seem very similar.