In order to fight death worms, get a rex with around 10k health and 200% melee damage. This lets you tank it while dealing loads of damage.

More Deathworm Encountering Tips