If you are using Windows 10. The Windows 10 Thread Stuck In Device Driver error is caused by a driver file being caught in an endless loop while it waits for the hardware to enter idle state. This is usually a driver problem and rarely hardware. Thankfully, a driver or BIOS update can fix it.
THREAD STUCK IN DEVICE DRIVER blue screen error probably was caused by faulty video card driver or damaged video card.
Try to boot in safe mode to conduct the fix.