Sysprep has an additional provider that's added in Windows to clean Appx packages and to generalize the image. The provider works only if the Appx package is a per-user package or an all-user provisioned package.
If an all-user package that's provisioned into the image was manually deprovisioned from the image but not removed for a particular user, the provider will encounter an error while cleaning out this package during sysprep.
To resolve this issue, remove the package for the user who's running sysprep, and also remove the provisioning. To do this, follow these steps. https://learn.microsoft.com/en-us/troubleshoot/windows-client/deployment/sysprep-fails-remove-or-update-store-apps
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–