Ope, we got it. This error was triggered by having an empty slice zone in one of our content types. Would it be possible to add checks in so that this does not happen?
Custom Type:
Slice zone on the page: