Random-ass repair shops are not going to expend the effort of putting in fake parts to hack you to.. hack a couple of thousand dollars off of your account and then get caught due to it easily being traceable to the repair shop?
The only people who need protection from hardware-swap hacks are people like journalists. And if you are one, you shouldn’t be giving people physical access to your device regardless.
Here is a simple solution: give the normal user (after a passcode unlock) a pop-up: ‘your X has been replaced. Do you wish to authorize this new part for use with your iPhone?’.
Make it so that if your phone is set to the new Lockdown mode, you cannot authorize any new parts.