"License Manager Error -25" occurs when you try to start a version of MATLAB that is newer than the version of the license.dat file on the license server.
To resolve this issue, update the license.dat file on the server to the latest release that you are licensed for.
Inorder to update the license file in license server, Refer the following answer
The license.dat file on the server machine is located in:
where $MATLABROOT is MATLAB installation directory
NOTE: Once you have made changes to your license file, be sure to restart the network license manager for these changes to take effect