After the fixes for T183474 and T199398 are deployed, we should run the maintenance script extensions/GlobalUsage/maintenance/refreshGlobalimagelinks.php --pages=nonexisting to remove the incorrect entries caused by the bugs.
Based on some quick estimates (see comments on those tasks), this will delete at least 0.5% of the rows in the globalimagelinks table on commonswiki.
(And maybe more; it looks like the last time we did this was in 2015 for T65594, and there are some unresolved tasks like T60604 and T219964 where it's more difficult to estimate how many incorrect entries they generated and continue generating.)