thanks for your effort pfeerick, but disabling the Terminal Conpty didn’t solve the issue. still same error
EDIT: I fixed it. the build went through and finished compiling with success!! it was the Malwarebytes software I was running in the background, turned it off and the compile went through.
I hope this helps somebody.
Check your antivirus and/or anti-malware softwares running in the background. It is blocking access.
thank you all for your time!