matting-levin: Fix stack smashing

Allocating 10MB stack frames is unhealthy.