Background migration error

Installation: self-managed GitLab Omnibus
Version: 15.11.6

After multiple upgrades from 12.8.1 to 15.11.6 the Background Migration job “NullifyOrphanRunnerIdOnCiBuilds: ci_builds” has failed at some point and it is stuck running at 73.00%. After some time it fails and if I retry to execute that job it remains stuck at 73.00% and fails again.

This is the job running:

And this is the message showed:

Do you know any solution for this?