This distress would be an example of "separation anxiety".
Children can demonstrate separation anxiety<span> as early
as six or seven months, yet for most children it tops between ten to eighteen months
and calms down by two years. Most ordinarily, separation anxiety hits when someone
leaves their baby to go to work or run an errand or in the given case leaves
with a stranger (to the child).</span>