Preventing unnecessary background app activity is an excellent way to avoid this. Doing so can also free up system resources, ...
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 ...