A study finds that millions of workers in AI-exposed jobs could adapt, but about 6 million may struggle to find new work.