The problems of shutting down the wrong engine are not factored into the risk calculations for twin engined theoretical engine related risk.
and 'pilot error' is not always a fair label when too much is expected from the pilot.
It is stressful if one engine runs up to diagnose the idling engine as the good one.
Some good advice here along the lines of 'do nothing'