According to the U.S.A Emergency Food Group: Sealed in the absence of oxygen, plan on a storage life of 8-10 years for beans and grains kept at a stable temperature of 70 degrees F.
According to the Utah University Extension: ...with the oxygen removed, beans and peas have a shelf life of 10 or more years. A B.Y.U. study indicated that pinto beans did experience a slight loss of quality during storage. However, samples that had been stored up to 30 years had greater than 80% acceptance.
However, vitamin degradation occurs after 2-3 years and most vitamins are no longer present after approximately 5 years.
As far as "going bad", beans and peas, when properly stored, are exempt... they don't.
"Food is our common ground, a universal experience." - James Beard