The boundary conditions were in the wrong order. This caused effects at the edges of the fluid domain, which caused the the simulation to crash.