Maybe it is the shock of the interrupted cut which causes the steel to twist. Barmy suggestion follows.
Why not make the part from round bar, to maximise strength and maintain a continuous cutting load, and cut the thread and then mill the workpiece back to 10 x 2mm (5 x 2mm for the section concerned).
This method may seem wasteful of material, but might save filling the scrap box, or a broken tool.
Hope that it works out O.K.
Howard