Laptop black screen with cursor(not blinking) [Closed]

Hello, I really need help with my laptop. I turn it on and the dell logo appears but right after that the screen is black with the mouse cursor visible. If I press the windows button + up arrow key, a window called winpeshl.exe appears. After 20-30 mins or so of that my laptop restarts but this time there's a line saying "diagnosing your pc" at the bottom of the screen and then after another 20-30 mins or so I'll get a screen with automatic repair and a few options to choose from.
I've tried system restore but for some reason I don't have restore point saved. Booting to safe mode doesn't work either. And resetting the pc and reinstalling windows doesn't work either . Btw my laptop is a Dell Inspiron 3521.
Please help.