This happened to me once, i thought my monitor was about to die, because it started to go black frequently for a second or two just at random intervalls.
After a huge amount of troubleshooting it was the powercable that wasnt
properly seated at the back of the monitor.
as always, first check the easiest things! thats what i learned