error when ai kills player character. really need help

ok guys after the ai kills my character a error pops up here’s the screenshots.