Is it possible to have large ephemeral disk?
Based on this thread, it should be already. But …
Given that, I’d recommend deciding how much space you need, create a volume of that size, and then mount that volume to the app. Gives you complete control over it: