What is error 2 that prevents e-file from completing?
E-file Error 2 is a transmission issue error. This means that something is preventing your return from e-filling
Try this suggestion to a similar issue by @mesquitebean
https://ttlc.intuit.com/community/taxes/discussion/e-file-error-2/00/3374663#:~:text=Are%20you%20using%20a%20VPN%3F%C2%A0%C2%A0%20If%20so%2C%20have%20you%20tried%20without%20it%3F
You can also click on the link below for tips on how to solve e-filling issues.
How do I solve my e-filing issue?