Make Lua value keeps losing the type, requiring a refresh of the node

After refreshing the node I lose the type enum

After a while I am able to refresh the node again and the enum type returns

Sometimes the warning returns and I lose the enum again
This happens every time I start the project, the issue is present in 4.26 (where the screenshots are from, no source modification) and 5.0