Someone wrote a book in the early 1900's that due to changes in the world economy that war was obsolete because there was no economic benefit to it.
Then WWI and WWII happened and people realized the book was stupid. But more modern thoughts are the author was right but culture hadn't caught up to the new reality. Why did the British Empire fail? WWI and WWII sapped it economically and it couldn't industrialize it's colonies and provide governance people would accept.
Suspect Xi and his buddies haven't caught up culturally to the new reality either. And so like political leaders in the 1910's and 1940's are making obvious terrible ham-fisted mistakes. China probably would be fine if they ran it like a more top heavy version of the EU or the US. But they aren't.