When I think of beans I just think botulism. But that's more to do with preserving them, not sure this within a day or two cooking method applies there. https://www.cdc.gov/foodsafety/communication/home-canning-an...
This won't kill the botulism spores, just the toxin that can kill you.