A swing check valve will not function correctly if mounted wrong. Normally a standard swing check is hinged on top and need help from gravity to be balanced and open and close correctly.
What is size and pressure? Fluid? (I have presumed clean, liquid fluid)
If small (up to about 10 inch) a good quality disc check valve with centered and guided movement and spring assistance will be better. (Type Gestra disc check as an illustration or similar types)
Above this size a double eccentric check 'butterfly' type valve with outside spring, piston or weight loaded arm could be a solution.
A good constructed nozzle check valve would be the best and most versatile solution in all cases.
'Corrosion' could be caused by improper (incompatible) materials, haircrack openings giving local cavitation or abrasion, incomplete closure (openings) coming from wrongly mounted or also wrongly sized valve. Wrong mounting could include also too short distance from bends, pump etc, eg turbulent flow.
If the pump has variable controlled speed this may also lead to the necessity of a checkvalve with immidiate closing when delta P is zero (nozzle check valve or types with similar function) to avoid 'gulping' when flow is actually to low to keep the checkvalve permanently open.