I suspect this where it breaks. That usb might be going offline, and/or not detected fast enough on restart, so for a very short tune Windows thinks it has only one monitor and acts accordingly.
Set the main monitor to be plugged in the bona fide hdmi. Check the power settings and make sure...