This looks like an issue described at various Microsoft Support answers.
I have linked one of the older ones here
Cause:This problem occurs because the Windows operating system pages outthe working set of the SQL Server process....Workaround:...use the Lock pages in memory user right...
The provided link should be enough to explain the cause and workaround in more detail.
I am including only the screenshot of instructions on how to enable this feature.