Hi!
Does this issue occur with any game, or just with a specific one?
Does the problem happen during normal computer use—for example, while browsing the internet or watching videos?
Does the black screen that appears show any message or error code, like in the image below?