Update: I tried plugging in an HDMI cable and unplugging it, which fixed it for about a day. However, while playing a video game, the screen froze, and I was forced to hard reset the computer and the problem happened again.
I tried the HDMI solution again but it doesn't work. My TV, which the cable is connected to, reports a screen resolution and refresh rate outside my range. I can't change it from Monitors, it's stuck at "Use the hardware default," and the registry didn't seem to help either.