I've confirmed the same issue, but haven't yet resolved the cause.
If "Krastorio 2 Spaced Out" and "Mining Drones 2 Remastered" are enabled, the above error occurs during loading.
I've worked around the issue by disabling the "data.raw["mining-drill"]["electric-mining-drill"].next_upgrade" change that K2SO introduces.
Best I can guess, the clash may have something to do with the adjusted collision masks generated in the final fixes file from MD2R, which adds as mask layer for drones. K2SO doesn't define seem to define a collision mask in 'electric-mining-drill-mk2.lua', which could be why MD2R's changes make the easy upgrade between drills incompatible?