Hey there!
Delete (make sure you back them up!) this folders on your project folder:
Intermediate | DerivedDataCache | .VSconfig
If it doesn’t work:
uninstall unreal engine
uninstall unreal engine pre requisites
uninstall Visual studio
Install UE
Install VS
Install UE pre Requisites
it might be just Vs but thats what i did in order to fix!