Transferring UE4 material to UE5 has no effect

The material of UE4 has no effect after being migrated to UE5。

After attempting to modify the code, a prompt appears as shown in the figure. For example, if FVector2D is changed to FVector2d, the prompt “deprecated” does not apply here.

Previously, it was able to run without scene effects, but now when this error message appears, it cannot run even after static.assert fails.

After searching, it is said that there is an issue with VS 2022. May I ask what the reason is?