Tower -
Look in the mfg installation specs. If the NEC allows these conductors to be run in the power conduit and the MFG doesn't want you to because it will cause trouble, they will say that or show that in the installation literature. And, as others have suggested, call the mfg. You really need to do those first. None of us know what either of those say or will say. None of us have access to the connection diagrams or specs. You do.
I'm assuming you didn't hire an engineer familiar with these types of installation. Rather you gave the drive and the books at the EC and asked them to install. If you wish to know if the EC did the installation correctly then, "Read the Book". Compare the installation with the installation instructions.
Just curious: Who commissioned the drive? Was the mfg commissioning procedure followed? You will be able to tell by looking at the filled out commissioning forms that you were give at closeout.
Maybe Thermistor leads, not really 'thermostat' wiring.
Bob has an excellent idea, could easily be an RTD. If so, it will be three (or four) wires. Generally RTD don't come out in the motor power connection box. They use a separate connection box. And they won't be 115V, they will be millivolts.
So if it is two wires, and it is 115V, and it is connected to the correct terminals in the VFD, and as benaround suggested, you have a method to test that interference on these two leads is actually the cause of the drive faulting - then I suggest you .... .... .... .... ... Call the MFG.
cf