While running any game, that is too memory hungry, thru Wine (WineHQ) it may completely fill up the RAM memory, before it have time to swap anything, causing this error:  

"DxvkMemoryAllocator: Memory allocation failed"

Is there some way to prevent that?

I read (need to find the link about it) that it cant be fixed in dxvk...