I have welded on lots of stuff over the years and never damaged any installed electronics. I associate with quite a few people who do the same thing and have never heard of anyone damaging any electronic component. Thats my experience anyway…
As mentioned, my ground is always where I am welding, not at the other end of the vehicle. Also typical welding voltages are not all that great. it is not a bolt of lightning, it is a low voltage localized circuit you have created. The main wire feed welder I use runs around 36V. Most welders are not very high voltage because it creates a safety hazard for the welder.. Now if you float the chassis to 36V and any accessory is turned on, that 36V can be felt on the DC buss, but disconnecting the batteries will not prevent this. And since the chassis is already at the same potential, there can be no real current flow. I see that as the same situation as the chassis being at any other potential…
now electrostatic discharge can damage components, but that is usually while working INSIDE the case of the component. The case design shields them, if it did not, we would kill them simply unplugging them or moving them around, and that does not happen. I have swapped a lot of them and even built some megasquirts and never damaged one…