ZRAM is a Linux kernel feature that creates a compressed block device inside RAM. Instead of swapping to slow flash storage (like eMMC or UFS), Android uses ZRAM to store compressed memory pages. This effectively increases available memory at the cost of slight CPU overhead for compression/decompression.
: Most Android devices will disable Magisk modules if you boot into Safe Mode (usually by holding Volume Down during the boot animation). How can I disable zram and enable and configure zswap - ARM disable zram magisk