In that case, 8GB of memory should be enough? It is a little unclear how the unified memory is used in the MacBook, how much is used for the video card, how much for system processes.
An 8GB M1 Air is a rather capable machine. The way Mac Silicon handles memory is extremely effective. I had to borrow a 2020 8GB M1 MBP for a couple of weeks when my regular computer was getting repairs. I ran that thing as hard as I could to see what would happen and with only a few exceptions, it just worked and if anything slowed down, I didn't notice it.
I would take an 8GB M-chip Mac over a 16GB Intel Mac anyday.