There are multiple ways to unfreeze a Nintendo Switch, including closing and re-opening a frozen game or resetting the console.
To fix a Nintendo Switch that won't turn on, try charging it, checking for damage, and resetting the AC adapter and console ...