If this problem occurs specifically with problem downloaded software, maybe it is related problems you can read here to find out more details. The following this steps to start troubleshoot a Nintendo switch system freezes locks up, or won't turn off:
Nintendo Switch Stuck On Logo
2. If this issue is happening while the console is in TV mode, verify you are using the Nintendo Switch dock (model No. HAC-007).
- If a different accessory is being used, replacing it with the licensed dock may resolve the problem.
Nintendo Switch Freezes Won'T Turn Off
4. Power on the console and perform a system update.
- If the issue persists, power off the console again, then initialize the console without deleting the save data.
If this continues to the point where it affects the game, you can visit the official website of Nintendo's Online Repair set-up, so that they can check the console, and repair or replace it happening.