Problem with Battlenet and GamePass

When I try to install Diablo 4 from Gamepass and connect my accounts, a window like this pops up and hangs.

Here is a screenshot of the problem: imgur. com/a/5gqcmiv (remove spaces from link)