The best explanation for the increase in nationalism and protectionism is:
Increased immigration is causing nationalism and protectionism to increase as swelling populations compete for limited resources.
This response highlights the tensions that can arise when populations grow and resources become scarce, leading individuals and groups to prioritize their national identities and protect their economic interests.