Screen goes undetected after a few minutes

I’m using a workstation with ubuntu 18.04. I’m able to start the computer and use it for a few minutes before the screen goes black and no signal is detected. I’ve connected the screen with an hdmi cable to the top gpu on the workstation.
What should I do to fix that issue?
Thank you