Does it crank okay while making the noise? Theory 1 would be that the power steering pump draws a lot of power and maybe pulls the battery down to the point it can’t start (while the pump is running)
As for why it stalls in the first place, it could be a similar thing with a weak battery as mentioned? Or something else is causing the ECU to reset.
I would guess that the pump running is a failsafe and probably the intended functionality if it loses communication with the ECU. If you were travelling at speed and something went wrong, it would be far better to keep the pump running rather than stop it.
As for why it stalls in the first place, it could be a similar thing with a weak battery as mentioned? Or something else is causing the ECU to reset.
I would guess that the pump running is a failsafe and probably the intended functionality if it loses communication with the ECU. If you were travelling at speed and something went wrong, it would be far better to keep the pump running rather than stop it.