Make sure you don’t have the latest version of Windows 10 installed.
The latest update seems to cause issues with Game Pass recognizing your hard drive so you can’t download games properly.
Revert back to the previous edition if you can, otherwise, you’ll have to wait until tomorrow to install it.
Try resetting the Microsoft Store and Gaming Services app.
Go to your Settings app and, under Apps and Features, locate the Microsoft Store app. Click on it, then press Advanced Options, then Terminate, and then Reset.
Repeat this with the Gaming Services app too.
Restart your PC and try to install the game again.
Try turning your firewall off.
This sometimes blocks Game Pass access.
Turn it off and try to install the game. If it downloads, simply turn it back on once it’s finished.
If this won't work, try to find and install "Xbox identity provider" from windows store