M1 out of memory errors

I am using a M1 Mac mini with 16GB of RAM and face similar issue all the time, see my post on this thread

I have posted similar screenshots showing how Big Sur stopped due to memory issue