Update to UE5.1 have anim layer bug

I try to add the “Link Anim Class Layers” function to B_Hero_ShooterMannequin>Construction Script in Lyra Project(UE5.1).
I got an error “Skeletal Mesh Component Object Reference is not compatible with Anim Instance Object Reference”.