If by head unit, you mean the actual iDrive centre console screen, that won’t make a difference at all, except for it being a lot wider than stock.
Realistically, if you fit a CarPlay unit to the car, the unit would have to be “married” to the car through coding. This could be achieved with something like Bimmercode, but more intensive software may be needed like ISTA. Once it’s married to the car, you might have to do some further coding to re-enable some things like navigation, parking cameras and radio antennas. Other modules might need to get to know the new module again, so that means more coding.
It’s not a hardware issue for the most part so much as it is a software issue. In my experience, improperly coded devices can lead to damage, or even potentially tripping component protection.
It may be easier to get something like a BimmerLink MMI retrofit kit. This kit is plug and play for the most part and doesn’t require a lot, if any coding. Plus, it uses the default Apple CarPlay system that BMW uses, so it still maintains the OEM aesthetic.
Most prevalent issues include, but are not limited to, thermostat failure, VANOS solenoid failure,hydraulic lifter failure and water pump failure. These jobs can get very expensive very quickly if addressed late. It is recommended to do these jobs as preventative maintenance before these compound issues over time. Ideally, you’d want parts with warranty, so have a look at FCP Euro with their lifetime warranty.
Other issues primarly revolve around gasket leaks. No real fix to these. Just got to stay on top of them before they turn small issues into big problems.