How can i solve this error when importing materials?
You don't have an active node selected and the Node Wrangler add-on had a bug that didn't check if an active node existed. Select the Principled BSDF node and it should work properly.

The bug in Node Wrangler has been fixed.