Answer:
An example of when specialization caused a country problems is when Nigeria focused all of it's effort on the oil production. Agricultural products were not a priority so they did not prosper. Nigeria had to import agricultural goods to survive.
Hope this helps!