If almost everyone loses their job at once, why won't all those people respond by voting for socialist candidates promising radical economic redistribution?
Socialism seems to already be growing in popularity in the US (traditionally the most anti-socialist Western nation) even without AGI firing everybody.
People made millionaire-level rich by capitalism voting to redistribute money to people voting for less socialism.
Because elections are every 4 years and people need to eat sooner than that. Traditionally, there were riots. Traditionally, countries ended over this.