Screen got frozen, display 0 and 1, what happened

Well, I was playing Stardew Valley and suddenly my screen got frozen I reboot and it displayed this

What happened?? Right now my PC works but I don’t want to happen again

Increase your chances of solving your issue:

Provide Information: