You're right on this. The timing is key.
With the regulator between the fuel rail and the pump it can't react quick enough. It's getting conflicting pressure signals from both the pump and the injectors.
With it on the far side of the fuel rail it can keep it steady.