Issue: I can’t get UE5 to open but code compiles in visual studios?

Alternatively you may have a member variable in your class that should be declared as a pointer that is not.
For example :

UPROPERTY(EditAnywhere)
USoundWave MySoundToPlay;

When it should be :

UPROPERTY(EditAnywhere)
USoundWave* MySoundToPlay;