The deployment of a MSIX application may fail in case roaming user profiles are used.
This can be solved easily with a policy adjustment.
The issue is there if this policy setting has been enabled:
Delete cached copies of roaming profiles enabled
If used then enable the use of Allow deployment operations in special folders:

Allow deployment operations in special folders
The explanation: