Kindly refer to the following MATLAB Answers post which gives similar workarounds on how to resolve DSS error while uploading model on a board.
https://www.mathworks.com/matlabcentral/answers/439023-why-do-i-get-an-error-debug-server-scripting-dss-error-the-system-cannot-find-the-file-specified