So this is a bug in amavis and not spamassassin? Or is it in the DMARC.pm plugin? https://metacpan.org/pod/Mail::DMARC?
Hm, there might be different opinions on this. I would ask Mail::DMARC developers if they could apply their invalid-to-permerror mapping for all codepaths in Mail::DMARC::dkim.