Thank you for your response. Yes, my Gamepass membership had expired, but on the same day, I renewed it, and since then, it hasn't been working on my desktop PC. However, I tried it on friend laptop, and the game opens normally.
On my desktop PC, I've tried uninstalling the game and reinstalling it several times, restarted the PC, but it still shows the same error.
To this day it still shows me the same error, and I still have my game pass subscription active.