If less labor is required for tasks A, B and C, then that frees up people to do new tasks D, E and F.
It is untrue that there is a fixed amount of work to be done, so when some of it is automated, then that necessarily creates unemployment. That's the "lump of labor fallacy".
https://en.wikipedia.org/wiki/Lump_of_labour_fallacy
It's also fallacious thinking to assume that every person must be employed working for wages.
If someday the economy as a whole can produce everything people need by employing 10% of the people to build robots, then we can organize it such that the people who like to build robots can do that, and the people who like to paint, or sculpt, or hike or sail can do that.
There is no universal law of the universe that requires the 10% of robot builders to own everything on earth, and the other 90% should live in rags, filth and sickness.