Top seal failure of ram blowout preventer (BOP) is one of the main factors leading to well control risk. The constitutive model and parameters of nitrile butadiene rubber (NBR) were optimized by compression and tensile tests, and the failure analysis model of the contact seal of the ram BOP top seal was built. The nonlinear contact mechanical behavior of the connection part of the BOP top seal was analyzed by the finite element method. Then, the influence of corrosion and wear defects at the top seal position of the 2FZ35-70 BOP under rated working pressure on the contact seal were studied, and the results showed that the overall contact pressure distribution of the top seal corrosion defects was uniform, the local contact pressure of the corrosion pit edge increased, and the top contact pressure decreased. The overall contact pressure of the wear defect of the top seal decreased linearly, the contact pressure at the maximum depth of the wear defect was the smallest, and the contact pressure gradually decreased to both sides. Ultimately, to guarantee the safety and reliability of the ram BOP, it is suggested that the acceptable depths of the seal corrosion pit and the wear at the top of the ram BOP are 4.0 mm and 0.2 mm, respectively, thus the reliability evaluation problem of the quantitative seal of the ram BOP top seal is solved.