Error:Expected the name of a previously defined enum

I created a class of userdefinedenum, storing all my defined Enums like this:

When I tried to use those Enums,like this:

344615-kby571izhbgsm0vrj.png

Here’s Error named Expected the name of a previously defined enum appearing.

I search for possible solutions for a week ,seems no topics deliver effective approaches up
to now
I use UE5,plz help!

Hope my experience can help someone
Use C++(enum class)
and include enums‘header in header,enum cant foreward declare
No Need TEnumAsByte

The enum header file to be included does not exist for a syncing problem in my case. No any clue why this did not throw any errors.

Just sync and get fixed. Hope this can help someone.