Please add your system specs as this will help with trouble shooting.
Do you hear a chirping noise when this happens?
Also I came across this at the MS community.
BCCode: F4 0x000000F4
Check and reseat all cards, memory and cables (on both ends when possible) actually remove and
replace - do not just snug. On a laptop about all you can do is reseat the memory and possibly check
the contacts/connection to the hard drive. Memory could be the problem so if you have more than 1
stick swap them in and out to see if the problem follows one stick or try new memory. Antivirus/anti-
spyware/security programs have been known to cause or have a role in this issue.
Most general fix is updating drivers, BIOS, and low level chipset drivers and other control software.
Also check cabling to hard disk.