The best way to free up RAM is to close unused apps. You should also prevent these apps from running in the background so they don't consume RAM. Another way is to adjust your startup apps and restart ...
For Linux users, the Google Stressful Application Test (GSAT) is an excellent tool for diagnosing memory errors. Alternatively, you can run GSAT in Windows using the Windows Subsystem for Linux (WSL).