Upgrade from 25.5 to 25.6 fails with duplicate key external_roslyn:CS8603

Is it always the same rule registration failing also when moving to the other versions?

external_roslyn:CS8603

If the migration is running on a copy of the original data I would suggest to delete the rule from the Database and run again the migration. Just to make sure that something is not corrupted with that specific entry.

If after doing that the issue still materializes on another rule I am a bit out of ideas.
As already mentioned, I saw this problem in the past in a datacenter edition, but the customer never told us how the issue was fixed.