Hi Hazel,
This error can occur when MATLAB gets corrupted during the installation process.
To resolve this issue, disable any security software or allow exceptions for the MATLAB application and then perform an clean installation of MATLAB.
If you are still experiencing this issue after performing a clean installation, obtain the crash logs and contact the Installation & Licensing Support team: