Not my field of expertise at all, some Googling I found the following -
The error is related to compiler security checks for Spectre variant 1 vulnerabilities
Spectre (security vulnerability)
[
^].
Try the following steps(again, not my field) -
Open your driver project in Visual Studio.
Right-click on the project in the Solution Explorer and select "Properties" from the context menu.
In the project properties window, navigate to the "C/C++" tab.
Expand the "Code Generation" category.
Locate the "Control Flow Guard (CFG)" option and set it to "No" or "Disable (/guard:cf-)".
Save the changes and build the project again.
Keep in mind that disabling Spectre mitigations may introduce potential security risks as per documentation -
Spectre mitigations in MSVC[
^]