Hello Daniel,
I wasn't able to reproduce the issue that you describe at my end, however, I did find another instance where this similar error/issue was raised. Find this link HERE.
Please do a clean reinstall of MATLAB and update your graphics drivers to get MATLAB to work as earlier.
Hope this helps!