One factor was barbed wire. As farmers and ranchers wisened up, they used the wire to fence in their cattle, destroying the use of cowboys, and taking away one aspect of the "wide open west". Herds of cattle took over the plains and destroyed the grass. In 1883 the big drought struck and water streams dried up and prairie fires grazed. Also the barbed wire and the natural disasters.
Signs point to North Korea unilaterally launching the invasion. It was not helpful for the USSR and was at a very bad time for the PRC since the war immediately shut down plans to invade Taiwan.
The U.S., especially after Chinese troops entered the war, viewed it as a united and aggressive communist bloc brashly taking over one more country and likely to try more if not resisted. US defense spending shot back up to wartime levels (though far from the WWII peak) and stayed there.
China also viewed it as a feeler for aggression that would go further if not resisted. Both countries were overinterpreting local issues as global ones.
The dramatic reverses were all in the first year, followed by two years of stalemate before the armistice.
It could be, but why in competition