Wht should Tesla be able to prevent me from replacing a bad Tesla part with a better/safer third-party part?
As for safety, it depends on the specific parts. An automated car is a complete integrated system. Once people start swapping parts, the test-matrix to ensure safety explodes. People modifying the driving software in their own cars, for example, is definitely a no-go. (And modifying any software at all should be prohibited unless the driving and entertainment computers are completely air-gapped.)
The big three made the same dumb arguments a hundred years ago... third party parts have never been a problem. People fought hard for the right to get replacement parts, and it's a shame we need to re-fight this battle because of the lemmings among us.