I was concerned 2 years ago when I bought my M1 MacBook Pro that 8GB RAM wouldn't be enough. It's been no problem at all, until today, importing 511 photos @ 20MB each (10 GB). No biggie: I just quit a bunch of apps that didn't strictly need to be open.

System Alert re insufficient memory and advice to quit apps.