How to fix broken blueprint pins, that "no longer exist"?

Any workarounds yet? When I open my project through Unreal Engine 5 itself it can’t see my enum structure written in a c++ class. But when I “start on local machine” in VS2019, it launches UE5 then opens my Project and it works fine… I don’t wanna launch my project through VS because it makes UE5 crash a lot.