Both examples that you show freeze with very slow feed rates (F554/F373) compared to the preceeding gcode - can you confirm that these lines do indeed have the lowest feed rates upto that point in the gcode?

If so, add a zero (x10) and try an air-cut, see if the behaviour is the same