Since Gears 5 installs successfully on another PC using the same account, this seems more like a Windows system issue than a license problem.
Try these steps:
Open Settings → Time & Language → Date & Time. Enable automatic time and time zone, then click Sync now.
Open Windows Terminal as Administrator and run: sfc /scannow
After it finishes, run: DISM /Online /Cleanup-Image /RestoreHealth
Restart your PC.
Open Microsoft Store, go to Library, and install all pending updates for Gaming Services, Xbox, and Microsoft Store.
Also check that Windows is fully updated.
The 0x80072F8F error can be related to system time or secure connection issues, so checking these settings is a good place to start.