iMac Screen Going Black intermittently
My iMac (21.5-inch, Late 2012 running macOS Catalina 10.15.4) recently started having an issue with the display. A few times an hour, the screen will go black for less than 5 seconds, then it goes back to normal. It happens regardless of what application I'm using and has persisted after restarting it. It appears that it is only the display, as I can continue typing during the blackout, and when the screen comes back, what I have typed during the blackness is there. Additionally, the screen isn't off. It looks like it is displaying an all black screen.
I couldn't find anything similar to this in the forums. It is quite annoying however, especially with all of the working from home lately.
Does anyone have any idea how to fix this? Thanks in advance.
iMac Line (2012 and Later)