Did you try it on an Apple Silicon Mac?
There was a lot of discussion of this at the time the M1s first came out, with loads of people (who had never touched one) confidently declaring that 8GB of RAM was far too little...and then nearly everyone who actually bought an 8GB M1 Mac saying "yeah, it might not handle heavy loads well, but that's what the Pro machines are for—in normal use, it has no problem at all with 8GB."
And then a bunch more people talking in a fair amount of detail (that kind of went over my head) about what Apple did to improve memory management with the M1 so that this would be possible.
So don't assume that 8GB on an Intel Mac is the same as 8GB on an Apple Silicon Mac.
Now, it does sound like you were trying to run a whole bunch of rather heavy stuff on it—y'know, the stuff that one might call "pro", and possibly even buy a "pro" machine for? The kind of thing where if you're buying the absolute bottom of the line, you might be able to expect that it wouldn't work well.