Just use a usb switch to cut power to the pi completely and it will work fine with your auto hdmi switch. Here’s the one I use: https://www.adafruit.com/products/1620
Just make sure to shutdown in emulationstation first to avoid corrupting the card.