Fair to say that this record will at least stand for approximately 20 years? I don't see anyone in the NBA currently as a threat, and James isn't going anywhere soon either. So if he eclipses 40k, you'd need to be in the NBA for at least ~20 years.
You'd need to be incredibly gifted and have the longevity and drive without any injuries. Even with talents like Wembanyama, I'm inclined to think "a LOT of things need to go his way in order to even come close".
If Durant didn't have all his injuries during his career he might've been close, like 2-5k points away. And he's still only 34.