Unreal Startup says: The following member variable have invalid type

I had the same problem in 4.19.
The solution that helped me:
go to the C:/Users/Your_user_name/AppData/Local/UnrelEngine/4.19(or your engine version) and delete everything there.
After that the project launched without any error.

I hope it will help anybody who face the same problem