The Windows SDK (10.0.22621) for Windows 11, version 22H2 (updated Oct 2023) provides the latest headers, libraries, metadata, and tools for building Windows applications. Use this SDK to build Universal Windows Platform (UWP) and Win32 applications for Windows 11, version 22H2 and previous Windows releases.

This article refers. Installing the updated SDK may just fix your issue!