If the first packet of keyframe has template structure is lost then subsequent packets rely on it will report invalid tempalte error which is expected.