AI is going to affect all industries, however, that doesn't mean the jobs will be completely overtaken.
I'd look at it like this (as a former engineer and a dude who has EE and ME friends). The mundane and repetitive tasks will be automated, leaving more room for strategic thought and innovation from humans.
If I were you, I'd just make sure that you stay in the know of what is going on with AI and search for the right place to work after.
My boy works for the energy company in dallas and he's always on go with outtages and fixing neighborhoods power especiallt after natural disasters