Whenever I download bigger files, my RAM fills up and the tab/download crashes. Is it possible to “fsync” downloads with Firefox (really Librewolf, but still) so that it goes directly into storage instead of RAM? Or to adjust the amount of memory used before it is dumped into storage?


One potential workaround is probably to use a download manager, that supports more advanced and nuanced control over how the files are downloaded.
Here is what I have used in the past:
https://github.com/subhra74/xdm
https://addons.mozilla.org/en-US/firefox/addon/xdm-browser-monitor/
The browser extension hijacks firefox’s download function, so that when you download a file, it instead connects to XDM, and offers to download that there.
It also offers save and resume functionality, so if it dies in the middle you can resume.