About a week ago I got a new computer. After a couple of days my screen started randomly flickering black. It either doesn't happen for multiple hours, or it starts happening and occansionaly or constantly flickers black. When it flickers black I can still do things such as use the keyboard and hear everything, its just that i can't see. Sometimes when the screen goes black i can hear the windows disconnect sound. I have a RYZEN 5500 and RX 6600, Gigabyte B550M D3SH AC motherboard and 16 gigabytes of ram. One time my screen blacked out, got very low resolution and static appeared.
I updated my graphics drivers.
I made sure everything is connected well
I changed my refresh rate and resolution
I tried to connect the monitor to a laptop and the monitor worked fine then (its connected via hdmi vga adapter)
Made sure nothing is getting hot
Changed my power plan
Can anyone help me solve this issue?