MacBook Air external monitor goes off and on when using HDR setting
I have a 2020 MacBook Air M1 16GB running MacOS 13.2.1. I have it connected via HDMI to an external monitor, a 45" LG ULTRAGEAR+ running 3440 x 1440. The HDMI cable from the monitor plugs into a USB hub, which connects to the MacBook Air via one of the two USB-C ports. The monitor's single DisplayPort connection goes to a Windows PC.
When I select the HDR option under Displays in System Settings the external monitor repeatedly goes off and on, as if the signal to the monitor keeps getting broken. When HDR is turned off, everything seems to work fine. The physical HDMI connection is fine (nothing is loose, cable is not damaged, etc.). The two things I can think of are 1) the HDMI cable might not be "high quality" enough to maintain an HDR signal; it's under 5' long, which I've heard can be a problem with HDMI cables, or 2) the USB hub is somehow interfering with the HDR setting. I can't think of anything else that might be the issue. Does anyone else have this problem?
Thanks in advance for any guidance.