Click on the Subscriptions tab in the left sidebar. In the Game Pass section, click on Manage. Then click on Cancel subscription, the last option in the menu.