recently got this error randomly without using "o.reload", or doing anything but creating new NPC's. The error names a bunch of failed hooks, such as "onentitydeath", "onentitytakedamage" etc. which then made the NPC's i placed to be killed, invulnerable even with "invulnerability: false". The error code image is linked below..
Link: https://imgur.com/a/6sO9YeB