If installing matlab via the installer is causing issues, I suggest you to download the complete ISO image and then install it:
- Select the Matlab version to install from here
- Then, under "Related Links" you can find Get RXXXXx ISO Images link and download the complete ISO image.
- Install again and check if you face the same error.