In my understanding, the above error is related to "Accessibility", which is also known as "Universal Access" for MAC. You can find this setting in Apple menu -> System preferences -> Universal Access. There is an issue with third-party applications on MAC that interferes with Java's accessibility code.
The workaround for this issue is to completely disable Accessibility ("Universal Access") in your MAC, reboot your computer and restart MATLAB afterwards.