Far as I know you cannot prevent them, they just happen. Both of my dogs have had them. When I find a new one we go to the vet, aspirate the lump and view it under the microscope to ensure that it is just fat and then we leave it alone, unless it gets really big.