Occasionally, my computer will show a blue screen that says, "Your PC has encountered an error and needs to restart".

How do I stop getting this screen?