Can't see a lot of detail, but what I can see...
The pulley for that pump is wet, so that might indicate the shaft seal is what is the true leak - it would also explain the foaming effects - cavitation and pulling in of air from around the seal moving against the impeller. That is also part of this problem with trying to find the regulation of it - that is integrated into the pump. (At least I have not been able to find such setting adjustments anywhere myself - usually let the steering wheel and the pressure on both sides, in helping it to equalize and find it's "center")
On the uptake side, that vacuum can also explain the foaming...
Do you, or can you, even locate a pressure switch on the housing or the rack?
I've had one develop a whistle like a teapot when the steering wheel is centered - then changes the tone and even disappears when you torque the wheel. Replacing the pump solved the condition.
Not sure of previous repairs to this area, but if the pump itself has been taken out and the lines removed, - seals usually are replaced at the same time - but in many instances - when the lines are kept in place, the pump itself is usually a rebuild so a simple PTFE thread sealant is also used.
Might be easier to replace the pump...lines too.