Fix Application Error 0xc0150004 on Windows 11/10