By default, a SQL Server instance may over time consume most of the available Windows operating system memory in the server.
Once the memory is acquired, it will not be released unless memory pressure is detected. This is by design and does not indicate a memory leak in the SQL Server process.
Adjust the SQL Server Maximum Memory as outlined in this article to below the total system RAM, and to match the requirements specified in the App Control Memory Configuration guide.