Wake from sleep instability help - i9-9900K Gigabyte Z390 - 10.14.5

Everything I care about works, except for some gremlins to do with boot and sleep.

I have two or three problems, probably related:

  • failure to wake from sleep requiring hard reboot, happens once every few days - after hitting a Bluetooth device to wake up, the system will respond and fans come and such, and if it fails it will fail to turn the monitors and not respond to any further input
  • failure to boot OS with "unable to allocate runtime area" failure, happens about 50% of the time when booting, but usually cleared by trying again
  • (happened only once) repeated failure to boot due to a "prelinked kernel cache" problem, that was cleared by attempting a direct boot (which failed due to the above) and then trying boot preboot again... not using FileVault

It makes me nervous to sit down and work because I don't know if my computer will be available or I'll be rebooting.

Hardware:

Kexts: SMCProcessor, SMCSuperIO, VirtualSMC, AppleALC, WhateverGreen, LiLu, IntelMausiEthernet, custom USBMap

drivers: Apfs, AppleKeyFeeder, AppleUISupport, AptioInputFix, EmuVariableUefi, HFSPLus, NVMExpressDxe, OsxAptioFix2Drv-free2000

I created a USB SSDT for the system, sacrificing a few ports.

I have a Corsair H100i cooler that interferes with sleep/wake when plugged into USB, so its USB is unplugged. As far as I know this has no side effects other than disabling RGB.

Disabling Energy Saver has no effect.

Not overclocked.

iGPU is enabled for Preview and working fine.

BIOS is default settings + XMP Profile 1 + enabled iGPU

Thanks in advance for your help!

Author: @Zomunieo