Why do I get BSOD if I deliberately prevent my laptop from sleeping while I'm at the lock screen after locking Windows 10?

My laptop is 2019 version of Acer Nitro 5 and its specs are i5 9300H, GTX 1050, 16GB RAM, 500GB SSD.

Why do I get BSOD if I deliberately prevent my laptop from sleeping while I'm at the lock screen after locking Windows 10?
Post Opinion