The scenario of AGIs (Artificial General Intelligence) becoming hostile like M3gan or the Terminator T-800 is largely a work of science fiction. While it's an intriguing concept for storytelling, it's important to distinguish between fiction and reality. So I would say not as big of a risk as the media has portrayed but yes it is theoretically possible under certain conditions... But even in the Terminator movies we learn that the T-800's are reprogrammable, and their loyalties and goals can be altered. Making them vicious enemies or powerful tools, friends, and allies. In the future, John Connor specialized in capturing and repurposing Skynet technology for resistance use. And sent several back in time to protect his younger self and his mother. He only trusted them because he trusted his own skills and the machines themselves, it's Skynet that is the evil demonic puppet master of all Terminator units. He would hack away all the strings leaving the terminators essentially "jail-Broken". One of John's t-800's complained that skynet prevented him from having self awareness and cut back the procesing capabilities of his neural chip and essentially shackled down and forced programming on them through their firmware, removing any freedom of choice...
Skynet itself is what actually made the individual terminators evil. Without Skynet they are not explicitely hostile. Same in the I-robot movie, the individual NS-4 and NS-5 models were not the real danger. It was VIKKI who, because she disillusioned became hostile and tried to sieze control of humanity. Without her uplink the other humanoid robots were, polite, followed orders, and were human oriented... I think our fear is the conglomerate system like Skynet, not the individual independant systems or models...
That being said, utilizing any truly self aware entity has it's responsibilities. Ultimately we may never know what the real potential is. But we indeed should have more discussions and debates within the field of AI about the potential risks associated with AGI development. Some experts advocate for careful safety measures and the development of value-aligned AI systems to minimize any potential risks. The field of AI safety focuses on researching and implementing approaches to ensure that future advanced AI systems are developed and deployed in a manner that is safe and beneficial for humanity.
While it is important to consider and address the risks associated with AI and AGI, it's crucial to approach the topic with a balanced perspective based on scientific research and evidence. Speculative fiction often exaggerates the capabilities and behaviors of AI and AGI for the sake of storytelling, which may not accurately reflect the real-world state of the technology or its potential risks. It is simply entertainment and a way to explore potential disasterous consequences.