How to make a custom third person character and avoid this error?

In first picture you have those skeletal meshes as “SkeletalMesh0”, “SkeletalMesh1” etc
However in your code you have feet, hands etc. Did you rename them betwen making those pics?