I think you have to accept that life is full of change. The world all around you is changing and you are best prepared by not having a fixed mindset or rigid skill set.
Regardless of how automated parts of society become, there will always be a need for someone to do something.
You should always tinker and experiment with new things, that’s where you find opportunity.