Stackoverflow error when using Flux in MNIST tutorial

First time poster here. I’ve got Julia 1.7.1 installed on a Mac mini M1 with 8 mb RAM. I was going through a tutorial on how to use Flux for neural networks and got most of the way through a lecture on how to use the MNIST database that comes bundled with Flux to learn handwritten digits and got hit with a Stackoverflow error. Same error in IJulia notebook. When recreating the steps in the plain vanilla Julia terminal it works fine. NOWHERE can I find a way to increase stack size for jupyterlab or IJulia. I would post the exact statements that led to the problem here but there doesn’t seem to be a simple way to copy cells out into the clipboard. Thoughts?