I think this (AI) could be a significant part of 'The Great Filter' - part of the possibilities to solving the Fermi Paradox. In brief terms to any who may not know about this - why are we seemingly alone in the universe - one hypothesis is that life destroys itself before it reaches space faring levels (long distance space flight of course, not barely being able to get to your own moon/planetary neighbour).
Ideas could be that planets run out of materials / resources before the tech can reach the required level, or that an invention is commonly made at a certain stage in tech development and this ultimately leads to their destruction, again before they can reach the necessary tech level for intergalactic space flight.... They call this unknown 'thing' that stops civilizations progressing a barrier, The Great Filter...