Your _on_AnimationPlayer_animation_finished()
function is in an endless loop as you are calling it from within itself.
This line calls the function and thus you get an endless loop:
if _on_AnimationPlayer_animation_finished("EnemyDeath"):
Just guessing by the code you are showing you should change it to:
if _anim_name == "EnemyDeath":