Beans get old but as far as going bad I don’t think there is a problem unless they have been exposed to moisture. I have cooked pinto beans that were stored in a large 50 gal metal can that was kept in a barn in southeastern Arizona. I never soak my beans I just pick through them and wash them clean. Put in large pot of cold water and cook on stove top with lid on for about 3hrs or until tender. Then add what ever I need to flavor them and simmer for about 1hr or less. Sometimes I will use my presser cooker if I want to get them done faster. Ever winter I can my pintos and then I have beans to use for refried or chili or whatever in the hotter months of the year. I don’t have to spend time and heat up the house cooking all day. Canning my beans in the cooler months warms the house.