I'm not super confidant with UE5, but I have had this happen to me and I can't remember what I did to fix it.
Are you always using
UCLASS(BlueprintType)
As the class type? All mine use UCLASS()
Using my IT support hat, what about a fresh project? Where are you generating the new class? Same result inside an already working class?