Dried beans can last a long time so using them after a year is no problem.
But beans that are off colored and with an off smell aren't worth it.
I don't see a health risk but taste and nutrition will have suffered.
As Steve said Beans are cheap.
But rather then toss them put them out for the birds and other critters to enjoy. If you can crack them into smaller pieces (A blender would work) so the smaller birds can enjoy them too. Perhaps even soak them and make a mash for our little pals in nature.