Maybe the bible is right here, but another way to view that parable might be that the rich person was planning for his safety, which is wise. And by dying, he has transferred the safety that he was building for himself to his legacy, which can continue without him. I think most people in our society would describe that rich person as being prudent, not foolish. We call that "estate planning" today and it's recommended that everyone does it.
There's a lot of other guidance that I consider very wrong in the same bible though, so its authority doesn't help me much in deciding if it's correct about how to view life. It also seems like this advice might have been more applicable before the invention of medicine.
In any case, I appreciate the explanation.