The US stock market capitalization was 34T in 2018. There is no way YOUR numbers are correct.
Notwithstanding the error, buybacks are one of several reasons for the extended bull. But still, only one of several reasons, and with no where near the impact you've ascribed.
These weren't my numbers...I pulled them from an article on MarketWatch....