I tried many methods and finally found a warning in an enum class: because I had deleted one of the types and didn’t leave a type equal to 0. After I fixed this error, the build was successful. Maybe this error message ultimately requires revisiting the code to check for any issues.
warning code just like this:
UENUM(BlueprintType)
enum class EDeathPose : uint8
{
EDP_Deahth1 = 1,
EDP_Deahth2 = 2,
EDP_Deahth3 = 3
};