Below is the error
Starting SFDX: Create a Default Scratch Org...
04:42:18.799 sfdx force:org:create -f config\project-scratch-def.json --setalias trailhead --durationdays 7 --setdefaultusername --json --loglevel fatal 04:42:24.219 sfdx force:org:create -f config\project-scratch-def.json --setalias trailhead --durationdays 7 --setdefaultusername --json --loglevel fatal ended with exit code 1
core_3.sfdc.isInternalUrl is not a function