I believe the issue is not in a dnf. There is similar bug - https://bugzilla.redhat.com/show_bug.cgi?id=2029709 which is reproducible using only `rpm -i`, without dnf involved. According to comment 18 the problem might be on even lower level, like filesystem.
*** This bug has been marked as a duplicate of bug 2029709 ***