Hi, I have the same problem.
My environment is R2020A with VS 2017 compilers.
The enviroment works fine for my models((C code integrated in S function)previously .
But after I integrated a .lib (x86 compiled with VS 2017) in my sfucntion, this problem happens.
Still trying to work it out.