hi @Erland Sommarskog above query does not return any rows.
Good. This means that you are not using In-memory OLTP (which obviously can outrun your memory if you don't watch out), and you don't seem to have any leaks with OPENXML. (One of the few ways you as a user can introduce a memory leak in SQL Server.)
I would suggest that you set up a job that inserts the data of these two queries in a table for each query once a day:
SELECT cast(sysdatetime() as date), * FROM sys.dm_os_memory_clerks ORDER BY pages_kb DESC
SELECT cast(sysdatetime() as date), * FROM sys.dm_os_memory_objects ORDER BY pages_in_bytes DESC
As you are approaching the out-of-memory condition, something may be climbing to the top.