It looks like alpha is never used in the other scripts, so this shouldn’t be the problem (although it looks like a bug to me).
Are you seeing an increasing memory usage?
The size of your dataset shouldn’t change the memory requirements, so I’m wondering why the smaller dataset seems to work.