This is an issue that used to be engineered into avoidance.
Now, I'm going on general automotive design, as I've been into so many British cars for repairs, I cannot recall each specific anymore.
The old Bendix pull-in drive...used to be the designers did the ring gear to bottom out against the flywheel ridge when the drive pulled in.
Put a different type stater with push-out drive, it would walk the gear off the flywheel.
MAYBE spot welds would work in a light duty four banger.
We used to yank the flywheel, re-seat the ring gear, drill six spots equally spaced around the ring gear/flywheel parting line, parallel to the main bearing line bore, tap, bottom tap, then locktite in 1/4" set screws and they never moved again.
In your particular situation with access, plugs out, mark the flywheel to show where you started, vise grips, start moving it back in a bit, roll the engine a bit, do that, again...and keep going around until you have it back into place...then try to spot weld.
By the time you're done...on your back...you could have pulled it out and done it right.