A high-temperature and high-pressure gas field in an oil field requires the use of super 13 chromium material due to corrosive environments. In the recent production process, there have been four consecutive cases of corrosion, fracture, and perforation of tubing nipples, which have brought enormous economic losses to the oilfield. This article analyzes the failure causes of these four tubing nipples and proposes preventive measures. In this paper, the macroscopic morphology, chemical composition, mechanical properties, metallography, and microscopic morphology of four failed tubing nipples have been analyzed. Combined with the field service conditions and string structure of the tubing nipples, it is believed that the failure of the tubing nipples is mainly due to the connection of carbon steel and stainless steel materials, forming a typical galvanic corrosion galvanic cell. The geometric and environmental factors of the materials exacerbate this corrosion. Eventually, severe galvanic corrosion occurred on the inner surface of the tubing nipple, resulting in severe wall thinning or partial perforation, and four tubing nipples failed. The failed tubing nipples in Wells A, B, and C have erosion marks, which are caused by the action of high pressure and high flow rate fluids in the well; The inner surface of the tubing nipple in Well D is rusty yellow, mainly due to the corrosion of its inner wall caused by the acid fracturing fluid injected earlier. At the same time, the string structure of four wells shows that the tubing nipple is located at the variable diameter node of the string. When the fluid in the well flows from the large hole into the smaller hole, the fluid in the well will change there, and its flow rate and pressure will also increase, further exacerbating the erosion in this area. With the development of deep wells containing carbon dioxide in oil fields and the application of carbon dioxide injection secondary oil recovery technology, the use of 13Cr martensitic stainless steel is also increasing. In order to avoid the occurrence of similar accidents that will bring huge economic losses to the oil field, it is recommended that the material of the pipe string (including accessories) of such wells be confirmed using a portable direct reading spectrometer before entering the well.