It is probably because of 3 things it will show the BSOD (Blue Screen of Death). One is that the Processor is overheated, the reason may it is not in cool place or the fan above processor is not working properly. Check the CPU temperature in BIOS (Basic Input and Output System). The second reason is the RAM, if the RAM is not enough or the RAM is damaged then also blue screen will come. The third is device like Graphics card, Video card, Audio card, Network interface card.
Check the CPU temperature if that is OK then check then RAM. if you have 2 RAM , check with one RAM otherwise , try to get a RAM and keep working for some time if the system is working properly then you need to change the RAM.