Bug 66425: Avoid exceptions found via poi-fuzz Prevent too much memory usage Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=67413