TEIID-2728 ensuring desired space calculation doesn't overflow