Here are some ways Sonic has been threatened or nearly killed in the Sonic universe:
* Dr. Eggman: Sonic's arch-nemesis, Dr. Eggman, constantly tries to defeat Sonic using various schemes and robots. He has trapped Sonic in dangerous situations and even attempted to destroy him outright.
* Powerful Enemies: Sonic has encountered powerful enemies like Chaos, Perfect Chaos, and the Time Eater, all of which have posed a serious threat to his life.
* The Master Emerald: The Master Emerald, a powerful artifact, can be corrupted and used against Sonic, potentially putting him in danger.
* The Time Stone: The Time Stone, another powerful artifact, can manipulate time and create dangerous paradoxes.
However, Sonic is a resilient and resourceful character who has always managed to overcome these threats and ultimately prevails.
Remember, Sonic is a fictional character designed for entertainment, not to be taken literally. His safety and existence are within the realm of the stories he is a part of.