Hi,
I understand that you are encountering an error while trying to install MATLAB. You can visit the following MATLAB Answer from the MathWorks Staff, which might be helpful in resolving the issue.
During the installation do not check on any additional toolboxes, just keep the default choice as it is. You can visit the below MATLAB Answer by MathWorks Staff to install additional toolboxes.
I hope it helps to resolve your query.