The field that will collapse the hardest is going to be data science. I speak to this as a data scientist, where most I meet don't have the knowledge to perform their duties. Eventually our salaries will decrease to those of traditional office workers/middle managers.
What is a engineer to do in this situation? The answer is to specialize, or gain exclusive access. Specialization is obvious, and exclusive access are things like clearances, certifications, and networks. Of course, this omits paths such as entrepreneurship.