if the file creation failed, I would first start by making sure there is plenty of free space on your c: drive. (free up space)
if there was plenty of free space, I would next update the cpu chipset drivers from your motherboard vendors website.
(chipset drivers often update the drivers for access to disk space)
if your system is old, i would run download a tool like crystaldiskinfo.exe and read the smart data from the drive to confirm the drives health is ok. (errors produced by the drive can prevent saving of a memory dump, ie drive becomes disconnected or asleep and can not wake up)
if the drive health looks ok, I would turn off the windows virtual memory and turn it back on to delete the pagefile.sys and make a new one.
(helps with corrupted pagefile problems (malware), errors in virtual memory, some bad drivers that corrupt the memory images stored on disk)
you might consider going into windows control panel, device manger and finding the drive and right click to bring up properties and tell windows not to let the drive sleep. (for certain errors) (update the chipset drivers as a potential fix for this)
best if you can find a minidump or even the parameters to the bucheck, (some of the parameters indicate a error code, we can look up the error code and maybe help identify a cause)