In order to get system-upgrade to proceed, I had to include *jasper* in /etc/dnf/dnf.conf's exclude= line. I suppose an alternative could have been creating a file in /etc/dnf/protected.d/ that includes jasper and jasper-libs. F39 jasper is 3.0.6. F40 provides 4.1.0.