Some time I can just fix it by restart my computer.
I wonder how it is related to Mathcad.
The only information we can see is "Microsoft Visual Basic" in the dialog title and a very basic E_ABORT error code.
In System Properties, Advanced, Environment Variables, System variables, set PATH:
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\MSBuild.
See if that helps.