Workaround for #22255 which showed how treating large/compact regions as pinned could cause segfaults.