If your wool sweater is pilled, you can use dedicated razors. And to limit their appearance, avoid friction with other fabrics such as jeans, do not overload your machine or even turn your woollen sweater inside out. Also consider limiting the use of chemicals that are aggressive to the fibres.