In the high sulfur natural gas purification unit, the connecting pipe of a lean/rich amine heat exchanger is extremely susceptible to corrosion due to the acid gas and amine liquid condition. This work numerically investigated the gas–liquid flow and corrosion of the real-scale connecting pipeline with two horizontal sections, one vertical section and four elbow sections. The effect of acid gas holdup on the gas–liquid flow pattern, distribution of velocity and pressure, and corrosion rate was investigated using an experimental validated model. With an increase in the acid gas fraction from 0.03 to 0.12, the flow pattern of the horizontal section changes from bubbly flow to a stratified flow in the horizontal section, while the flow pattern of the vertical section and elbow section keeps bubbling, and the proportion of gas bubbles increases in the vertical section and all elbow sections. The maximum pressure gradient was observed on the top of the horizontal section. The most serious corrosion section was found out on the outlet of the first elbow section where the gas liquid flow starts to stratify, which is consistent with the measured minimum wall thickness. A solution measure for anti-corrosion acid gas in the pipeline was proposed by adding a bifurcated pipe to separate the acid gas in the first horizontal section. The accumulated acid gas was effectively thrown out from the outlet of the bifurcated pipe. This method provides a promising way to eliminate the acid gas in the pipe and avoid forming stratified flow, which is helpful for prolonging the service life of the pipe.