So The Autopian just posted a new article that’s relevant to this discussion:
FYI I didn’t enjoy the writing style for the article. Seems too much like it was written by ChatGPT and it minimizes some of the elaborate and specialized skills and procedures it takes to repair a casting, but the TLDR is that yes, you can sometimes repair damage to these castings and there are predefined repair procedures that depend on the size of the cracks and where they are located.
That’s mostly for cracks less than 2" long, though. Actually ripping off a large chunk of the casting as happened with this Cybertruck would probably require a whole new casting which may or may not be cheper than just replacing the truck entirely.