Hi PWAY KVM Switch,
Thank you for reaching Microsoft Community.
Is this the first time that you connect the monitor using the travel hub or this used to work before and suddenly the issue occurs?
just to make sure also, the KVM switch is connected to your Surface Pro 7 through the USB-C port then the USB-C Travel Hub is connected to the USB-C port of the KVM switch and the monitor is connected to the HDMI port of the travel hub, correct?
Let us first to troubleshoot without using the KVM switch. Connect the USB-C Travel Hub directly to the Surface Pro 7 then please try to open Device Manager, expand Monitors then right-click the driver for your Samsung C49RG9x and select Update device. Select Search automatically for updated driver software. This to check if an updated driver is available. Please check also with Samsung support if an updated driver is needed.
If the issue persist, please try to clear the display cache of the Surface. See: Troubleshoot connecting Surface to a second screen (microsoft.com) and refer to Solution 6. Try also to lower the refresh rate of the external monitor (Samsung C49RG9x) to 30Hz through Windows Settings > System > Display.