That's a very optimistic way to think. But every new technology brings its set of failure and danger.
For instance energy: petrol -> pollution, nuclear energy-> tchernobil, danger currently in Ukraine with the war, ...
Food : fertilizer -> water pollution and eutrophication
Housing: more home -> less free soil to retain water, insane flooding.
And so on, and so on.
Anyway by the time we reach 8 trillion, a nuclear war surely would have already started and wiped us all