Issues like this treated in twilight zone a few times...dont forget Julie Newmar as “Living Doll” tv show back almost 60 years ago. We are now reduced to the level of bacteria...er...no offense meant Mr MRSA....
“The Lonely” (13 Nov. 1959) with Jack Warden as a lone prisoner on an asteroid, is gifted a female robot by his jailers to keep him company. One of the best Twilight Zones.