Macos Big Sur Select The Disk Where You Want To Install Macos

SWAP (file or partition) will allow you to stall the condition. The system might become very slow, but you stand a chance to investigate the issue.
You can run stuff in RAM quota'd cgroups, - but that requires you to know the offending process.