Hello,
Welcome to Microsoft Q&A!
It seems that you are running the local WACK Test for your app. Based on the error message, the Microsoft.UI.Xaml failed to install because it is installed before. The local WACK test uses your local device to test and it is optional. I'd suggest you upload your package to the store submission directly. When you upload your package to the store, there will be another Online WACK test for your app and the store will only check the result of the online WACK test.
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.