Those also had:
- grievance narratives;
- a tendency to divide the world into loyal citizens and enemies; and,
- use the above to justify authoritarian powers.
You haven’t shown that nationalism played a particular part in that cycle; just that it also happened in nationalist states. Almost like the problem is those factors, rather than nationalism.