As the 16TB limit has been removed on Xbox, this hard drive should be compatible. However, one of these expansion cards would be best:
https://www.galaxus.ch/de...
With these, digital games can also be played directly. With standard SSDs and HDDs, games must first be moved to the main memory before they can be played, which can take a long time, particularly with an HDD.