This sometimes happens multiple times per day and the only way to make it stop is to restart the computer. I am on a Razer Blade Stealth 2017. The screen displays random noise usually in a yellowish color and the entire display is taken up by it - none of what what previously on the screen is visible. Upon restart, there are no error messages or anything to indicate that the system crashed. The computer will not reset on its own, I need to manually restart by holding the power button. This seems to only happen while I'm in the middle of typing something regardless of the application.
Edit: After further inspection, this occurs only when the caps lock key is pressed. No matter if it's on the the built in keyboard or an external one