Earlier quoted context omitted.
I have the M1 air with 8GB and it's unusable with pycharm on an external 4K display.
Because you are most likely running the Intel version, not the Apple Silicon one! Check it in the Activity Monitor. There should be a "Kind" column on the CPU or Memory tabs. If not, you can turn on that column via a right click on the headers.
and it's freaking buttery smooth. notice the "aarch64" part!