This could be a weird namespace issue.
Does it work if you add UE::Geometry:: in front of FDynamicMeshAttributeSet
UE::Geometry::
FDynamicMeshAttributeSet