It was ever thus with dry sump engines. The scavenge pump has a higher capacity than the feed pump so the sump will not flood, but this means the return pumps a mixture of air and oil - hence the foam. On the old brit bikes that used this system the return line went into the bottom of the oil tank so the foam was dissipated into a few bubbles and the tank did not froth up too much.
John