Unfortunately there is no way you can fix this in software. The only solution is desoldering them. The safest way to desolder them is to cut them with wire cutters so each pin is separate, and then desolder each pin one at a time. I would do this one pin at a time, i.e. cut, desolder, cut, desolder… so when you cut it, it’s just one pin at the end with room to move.
If you cannot find these resistor networks locally, I can post you some more. Just email me with a postal address.