Let's imagine for a moment that there's an energy crisis affecting the entire world... And that the robot simply shuts down, and that's it.
Well, that's just a specific case.
You could just as easily consider a situation where a human friend doesn't live very long.
I'm only considering general things. For example, a robot will never get tired. Then, as a child, it can watch over them around the clock, play with them whenever they want. If you think this will spoil the child, then, please, we can program the robot to play with the child for no more than 2 hours, for example.
You can't teach a robot to think properly.
A robot is rationalism. It lacks a creative element. But rationalism is also a good thing. The ability to find the most optimal solution to a problem.
We will deprive humanity of normal communication; people will simply become savage.
Why would they become savage? On the contrary, we provide the robot with a powerful knowledge base so that it can support any conversation, and people will be far from savage. They will also chat about various topics, but the only difference will be in the conversational partner.
A robot that a child never receives a refusal from will somehow manage, but this child, when faced with the real world, will simply be unable to adapt to it...
Honestly, I don't understand what you mean by that. I've already said that any program can be introduced into a robot; it only depends on imagination.
By the way, human upbringing doesn't always prepare a child for the real world either

Барон "Vampires"
Отдай свои прошлые сны,
В сомненьях себя обрети,
В бешеном танце душа кружится!
Не думай, что будет потом,
Здесь и сейчас мы живем,
Стань хоть на миг сам собой, слышишь!