Fix BAD_POOL_CALLER Blue Screen on Windows 11/10