On a C++ project on UE5.1.1, I fix it with this two options:
And be sure you have closed any UE instance.