PEX is usually quoted at 40 to 50 years of service life, sometimes longer, and occasionally "forever" by a guy at a supply house. The honest answer is that PEX lasts as long as it is installed correctly and not abused, which is true of most things except cast iron pans.
Pressure above the rated range, water that is too hot, unprotected sunlight exposure, and abrasion where pipe rubs on framing. Most PEX failures are installation problems, not material problems. A kink that should have been cut out and was not will eventually complain.
PEX-A is more flexible, resists kinking, and can be expanded to fit over fittings. PEX-B is stiffer and uses crimp or clamp connections. Both are legitimate. In a repipe, PEX-A is often chosen for its bendability through existing framing.
Copper can last 50 to 70 years but is vulnerable to pinhole leaks in aggressive water. PEX avoids pinholes entirely and does not corrode, but it does have a finite service life and is less tolerant of abuse. Neither material is magic. Both reward good installation.
Less often than galvanized. When it does, it is usually at a fitting or a damaged spot.
Yes, with installation requirements including UV protection.
Material warranties exist, and the contractor's workmanship warranty is the one that actually matters.
Wondering whether PEX is right for your repipe? Call (855) 613-5056.