The problem is...I have only 8GB RAM 😭 because Apple told me it counts twice as much! 🤣You might have something specific that's hogging resources. Worth investigating if it's causing your problems.
Under normal conditions MacOS is extremely good at keeping a boatload of windows and tabs open. I regularly had a ton of windows tabs open across 4 different browsers on my 16GB M1 Pro and still ran VMs without any issues.
That said, to be fair, it is pretty good for 8GB. I will spend what's needed to get the right config on my next Mac.