A workaround for this could be to change the compiler being used.
Execute the following command in command window of MATLAB to view and change compilers.
>> mex -setup
If there are no other available compilers then you can download Microsoft Visual C++ 2017 product family.