Am I cooked

So I've recently (6 moths ago) bought a lenovo legion 5 16irx9 but got no idea why nowadays after using for a couple of hours the screen suddenly turns black and a horizontal white line keeps glitching. What should I do. Display only works after forcefully shutting it down.