Error 9564 occurs when the module [COM Module Name] contains the COM data.
Building a release is when this COM server will not be activatable outside the Appx package.
This build error may be caused by a specified COM server that will not be activatable outside of this Appx package as all its registry entries and extension points are in its private hive and not exposed publicly to the system.
To workaround the issue at this point, if your application uses COM only for its own personal use, then you can ignore this warning and rely on COM entries in the application’s private hive (Registry.dat) to support your app.
All binaries in the same appx\msix package have access to that registry, but any other apps on the system cannot see into your app’s private hive.