It's important to note that in the marxist/sociological tradition (doesn't really matter how actually marxist they are these days), "nation" refers to basically ethnicity. China itself claims to host 56 nations. In this context "nationalism" is considered a threat to the state and to the people. Don't confuse thus with pro-state patriotism, of course, which is alive and thriving.
The soviet union was the same way. Even member states mostly represented multiple nations, which often crossed member state borders.
Here's the relevant work from Stalin: "Marxism and the National Question": https://www.marxists.org/reference/archive/stalin/works/1913...
I'm pretty skeptical myself that nationalism was the thing that tore the soviet union apart. The most ethnically diverse areas (notably, georgia and central asia) generally benefitted the most from attachment to the soviet union. Surely here in the US we are less bound together by shared culture than the soviets ever were. If the soviets were an empire of nations, we are a prison-ship of them.