Not sure why the Quark turned to water. I did this recipe too and that didn't happen to me. Did you make sure the potatoes, etc, were well drained and dry before using them?
I'd say just try the lasagne, maybe with a different brand of Quark(?) and see if it happens again.