If you’re running third-party antivirus software on your PC or handheld device, sometimes that can incorrectly cause installation errors. If you encounter issues installing games, try suspending your antivirus software temporarily while you attempt to troubleshoot game installation from the Xbox app or the Microsoft Store app on your device.
https://support.xbox.com/en-US/help/games-apps/game-setup-and-play/game-installation-issues-on-PC

