Trimming the pg log past last_update_ondisk can cause the OSDs to assert with FAILED ceph_assert(head.version == 0 || e.version.version > head.version), when the pg log is extremely short.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:3003