I just downloaded and tried to play this on XBOX gamepass on PC and have exactly the same issue. Cannot get past the "communicating with online services..." at the start. tested the two pages above and they both have green ticks and my internet connection is fine and i have no issue with any other game.
Codemasters, you quite clearly have a major issue on your hands with this as it would appear vast amounts of people can't play the game on xbox gamepass. Even one of the few reviews on gamepass says they are experiencing the same thing.
This seems to have been going on for ages looking at this thread so i'm stunned it hasn't been fixed!