Sometimes you can simply close the subscription page and still have access.
If that doesn’t work, make sure the account with the GamePass subscription has the console designated as its Home Xbox. (Multiple accounts can have an Xbox designated as their home Xbox.)
Alternatively, make sure the subscribed account remains signed in on the Xbox while you’re playing on another account.