1.54" Screen Suddenly Stops Working

I’ve bought one of the 1.54" colour screens, and when I first program my board with it, it works fine, but after about 10-30 seconds it just goes blank. What could be the cause of this? When I restart the board it works fine again. Any idea what could be the source of this?

What device is it connected too, Pi, Pico etc?
And buy what means is it connected?
Also, posting the code your running may help.