The MSI laptops all come with terrible bloatware that has been known to cause these issues, recommend uninstalling all that stuff or better yet doing a fresh install of Windows without the crap!
Read more here: Freeze when opening window (2018.24410, WIN 10 Pro) - #8 by malcolm
ASUS are also known for this and same recommendation.