Nintendo Switch on HDMI Switcher

The 3.0.0 Update should solve this, released June 19th 2017

Improvements to prevent unintended HDMI input change with certain TVs while the console is docked in Sleep Mode

Release Notes