If you haven’t seen “Colussus: The Forbin Project” it’s worth a watch. Total fiction at the time (and it’s pretty old) but great story line that’s now not so far-fetched any more.
The point Sharky made about the types of AI and all is important. It’s the big ones that are getting odd behaviors. But they are really just fancy video card vector engines to a degree. It’s why nvidia is such a big player and why the 4000 and 5000 nvidia cards can be used for AI stuff on your own system with the right software.