Family.InstanceByFace face input needs surface but you where feeding Element.FaceReference to it try this it should solve your issue.
Family.InstanceByFace face input needs surface but you where feeding Element.FaceReference to it try this it should solve your issue.