I suspect we have more immediate problems than "can we survive the next n billion years".
The idealized Star Trek society of production automation and exploratory self fulfillment might only be possible, and sustainable, if we are a billion people.
That is still plenty enough people to continue our ever accelerating and vast exploration of culture, science and space.