Be careful to add any defoamant to your system,Most of the foaming problems is relative to the operation mistake, usually the lubricant is carefully balanced with varitey of additives including defoaming additive,I suggest you to do the follows:
1. Check the oil level ,if it is too high or too low
2. Check the oil cleanliness , if it is contaminated by dust ,grease or some anti corrision agent..etc.
3. Check the oil return line if it is a circulating system, check if the oil return line mouth is above the oil level
Try another better quality oil if you are sure everything is in good order , Be sure to Flush the system throughly before oil changing.