What machine do you have????????
The B7500 in your profile, or should we guess?
If a B7500, the curved tube is the vent. If so, there' could be something drawing air into the system, and causing cavitation and a bunch of air. Could be a low pressure hydraulic line with a crack in it.