There are multiple ways to unfreeze a Nintendo Switch, including closing and re-opening a frozen game or resetting the console.
You can set up your Nintendo Switch for repair after contacting Nintendo Support through the options provided on Nintendo's website.