I'm not sure what kinda of error code you guys may have, but this is my fix when I get an error when trying to click Install. Might able to help for those that has an error when try to download the game.
Make sure you can "Sign in" into "Xbox Console Companion". If you can't. Do the following steps for a fix.
In the Search Bar type in "Services" and "Run as Admin" Scroll down till you see all the "Xbox services" and make sure they are not Disable. If they are, enable them all by "Right Click" and go to "Properties". Then on "Startup Type" select "Automatic" click "Apply" and "Start". then close the window for that service you just enabled. Do this for all the "Xbox services".
In the Search Bar type in "System Configuration" and "Run as Admin" Select the Services Tab and scroll down till you see all the "Xbox services". Make sure all those Services are ✓. Then click "Apply" and Close the window.
Go to Microsoft Store and see if you can Download the game.