Pokemon moon fix where screen goes blank and still is running

This error happened to me when I started pokemon moon for the first time.
My CPU specs are:
Windows 10 Pro
Intel Core i5 7200U 2.5GHz
Intel HD 630
256 GB SSD
The laptop I am using is a Dell XPS 13.
When you start the game and go to talking with the professor for the first time is where the screen gets stuck and goes black and only the sound will work. You gotta turn off “Enable hardware shader” and turn off “Enable shader JIT” when the conversation starts. Once you go past that point, you can turn on “Enable Shader JIT” and also “Enable hardware shader”, but it is not recommended turn the latter one on because it might get stuck at cutscenes later on.
Any other questions, feel free to ask.