Hello
Blue screen error can be both software and hardware.
The software issue can be due to the installation of an inappropriate driver or a virus or a BIOS error, which can be solved by updating the BIOS or reinstalling the operating system and drivers from the manufacturer's website.
Regarding the hardware error, any component on the board can be the cause of this error, such as graphics or RAM, hard drive, CPU, keyboard, Wi-Fi, etc., but most of the errors are due to RAM.