Maybe xenophobic is a better word? I dunno, there isn't really a word for hating someone based on their nationality as far as I know, so racism is kinda used as a catch all term for this sort of things.
Even though it might not have a name (or I just don't know what it is), it's definitely quite a common thing.
This sort of nationality-based hatred and fear mongering was pretty common in Europe in the past for example, even though they were the same race:
Hell, it still exists today: See the anti-Polish sentiment amongst Brexit voters for instance.