There are multiple ways to unfreeze a Nintendo Switch, including closing and re-opening a frozen game or resetting the console.
You can cancel a Nintendo Switch Online membership through your Switch's Nintendo eShop app. You can do this at any time after subscribing.