I have a 16G M1 and that popup about the system running out of memory comes up frequently. I would do terrible, terrible things to be able to upgrade the RAM. My 2014 Macbook Pro had 16G!
I have a 16G M1, and have never ever seen it in those 2 years I have it. I do programming and video editing, and run VMs headless to which I give like 2-4G.
Lucky. I have to restart perhaps once a day/every other day as the UI becomes unresponsive. Sometimes putting the computer to sleep means it restarts by itself, or I have force power it back on.
That's rather odd to be eating all your RAM, I use my personal M1 16GB with Firefox, Affinity Photo and Capture One all the time to process RAW, never had issues running out of memory. Neither when producing music on Ableton Live and/or Bitwig.