resolve: change most backwards incompatible ambiguity errors to legacy_imports warnings
#38271
+111
−28
legacy_imports warnings
#38271