Using the existing line set does not void the warranty. If anyone doubts that, feel free to check the current installation instructions for retrofitting current equipment on a R22 system as published by Carrier, Trane, York, or Goodman. Those brands and their associated sub-brands make up the majority of equipment installed today.
All say it is preferable to change the lines, but none have it as a condition of warranty. Nor do any of them prohibit the use of a chemical flush as a condition of warranty.
Verifying proper line sizing is required, but, once again, the majority of existing lines will be the correct size for an equivalent capacity system assuming the lines were sized properly when the original installation was done.
IMO, dealing with any indication of a current or previous burnout is about 20X as critical as fretting over an ounce of residual oil in the lines. Anytime a burnout is indicated, every effort should be made to replace the lines. And if that's cost prohibitive, then my own approach would be to create my own flush via pumping about a hundred bucks worth of liquid R123 thru the lines rather than relying on a $75 spray bomb of chemical flush.