VXAce Yanfly Death Common Events crashing game

I'm getting a crash when killing an enemy within battle events. Whenever an enemy is killed, either by adding the Change HP command, or the Add State (Death) command, within a battle event, I get the following error:

"Game_Interpreter line 119: FiberError occurred.

double resume"

The error stops happening when I comment out the Yanfly Death Common Events script. I've tried it with a blank troop page, with only a Turn 0 condition that adds the death state to the enemy, and one that decreases its hp by 999 with knockout enabled. Both still crash the game, with the same error. This is also true in a brand new project with only Yanfly Core and Yanfly Death Common Events installed. Is there any way around this?

The DCE script is working otherwise, but it crashes when an enemy with a relevant notetag dies via battle events.
No idea how this can be fixed, but it's been an issue since 2013.
You might want to avoid using the script in that way, or at all.
That's a bummer, considering I use this script too. (Albeit only for a common event relating to the main character so far).
Are there good alternative scripts?
Manually process it in the troop page
1775005661639.png
1775005678207.png
1775005695118.png
1775005728488.png
Pretty sure I've isolated the problematic code, it's lines 223-228. Commenting them out prevents the crash.

def death_event_id
if $imported["YEA-Doppelganger"] && !self.class.nil?
return self.class.death_event_id unless self.class.death_event_id == 0
end
return self.enemy.death_event_id
end

Anyone have any ideas? It would be nice to patch this script and fix this 14 year old bug.
The "double resume" thing makes me think that the game is trying to do two different things at the same time?
Ok, this is working, but I'm running into another issue now. The common event won't trigger when I set it to "Enemy's HP is 0% or below".
Nvm, I was able to figure it out using this: https://himeworks.com/2013/03/troop-event-spans/

Original thread: https://forums.rpgmakerweb.com/threads/yanfly-death-common-events-crashing-game.183085/