What was sent to the printer? Is it ZPL? The configuration change is probably due to the commands used in the ZPL. Take a look at the ZPL that was sent to the printer. It may give you some clue.
Hi Nishchal, Did you calibrate the printer? Try sending '^XA^MNA^XZ~JC' to have the printer detect the label length.