I am familiar with an episode of the Twilight Zone. The main character had been convicted of murder and he was serving a life sentence on a asteroid where he was the only living being. He was given a female robot for company. At first he hated the robot but after some years he loved the robot as he would have loved a human wife. It was another new idea from Rod Serling.
Sounds like a movie I saw as a very young child in black and white, and I felt awful when at the end when he was just getting ready for boarding the spaceship to bring her back to earth.....she exploded and her wires and springs fell out. He had no one to make the return trip with. So Sad.