As a quick test of your raw, I dumped it into an entity file with dwarves, goblins, and kobolds, replaced the default entity file, and ran world gen (long history, small world). The world gen is at 250 years and climbing without a crash, and when I paused to check, at least 3 civs of your entity got placed. The only changes I made to your raw were changing the [CREATURE:<race>_MODDED] entries to just [CREATURE:<race>], since I don't have the necessary races those in my raws.
So I think whatever is causing your crash isn't in the entity raw itself, but might be in one of the raw entries for your modded races, or in the raws for one of the weapon/ammo/glove tokens which came up as unrecognized for me.
Here's the error log from that worldgen. It looks like you have some typos in your entity definition.
*** Error(s) found in the file "raw/objects/entity_test.txt"
MONASTERY:Unrecognized Entity Token: DIG
MONASTERY:Unrecognized Entity Token: BUILDS_OUTDOOR_FORTITFICATIONS
Unrecognized Ethic Response Token: EXILE
Unrecognized Ethic Response Token: EXILE
Unrecognized Ethic Response Token: EXILE
Unrecognized Ethic Response Token: EXILE
Unrecognized Ethic Response Token: EXILE
Unrecognized Ethic Response Token: EXILE
Unrecognized Ethic Response Token: APPALING
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: APPOINTEDD_BY
MONASTERY:Unrecognized Entity Token: EXPORT_IN_LEGENDS
MONASTERY:Unrecognized Entity Token: ATTACK_ENEMIES
MONASTERY:Unrecognized Entity Token: SUCCESION
MONASTERY:Unrecognized Entity Token: RESPONSIBILTY
MONASTERY:Unrecognized Entity Token: RESPONSIBILTY
Unrecognized Position Responsibility Token: RECIEVE_DIPLOMATS
MONASTERY:Unrecognized Entity Token: SUCCESION
MONASTERY:Unrecognized Entity Token: RESPONSIBILTY
MONASTERY:Unrecognized Entity Token: RESPONSIBILTY
Unrecognized Position Responsibility Token: RECIEVE_DIPLOMATS
Unrecognized Position Responsibility Token: HEALTH MANAGMENT
*** Error(s) finalizing the entity MONASTERY
Unrecognized entity weapon token: ITEM_WEAPON_KNIFE_THROWING_GLOVE
Unrecognized entity weapon token: ITEM_WEAPON_SHRUKIN_THROWING_GLOVE
Unrecognized entity weapon token: ITEM_WEAPON_WOOD_NUNCHUCKS
Unrecognized entity weapon token: ITEM_WEAPON_KATANA
Unrecognized entity weapon token: ITEM_WEAPON_NUNCHUCKS
Unrecognized entity ammo token: ITEM_AMMO_KNIVES
Unrecognized entity ammo token: ITEM_AMMO_SHRUKIN
Unrecognized entity gloves token: ITEM_CLOVES_GLOVES