Fix error message parsing to correctly extract chunk name