then it’s related of when you use it, try to spawn it ingame with same code ?
You said when player die, but what happen if you don’t spawn it ? you go back to main menu or just stay there ?
You do have engine pdb and sources downloaded right ? could you browse the stack trace to find more info on what going on ?