God holds nations accountable too.
You might check out Jeremiah 46:28. But there are many Biblical examples of the point.
Certainly he holds individuals accountable.
Nations are 'mere' collections of individuals.
and of our collective choices.