How to avoid Self-Healing of an MSI Package?

The correct way to avoid self healing on a component is not but removing the keypath.

If you want self healing to be disabled you should be removing Component code. A blank key path confuses self healing. A blank component GUID stops self healing data being written to the registry, effectively disabling it.