If the whole node crashes, then the stack trace is most likely not very representative: it just points to whatever it was executing when the node ran out of memory.
I think you should try and reproduce this on your local machine, with a smaller dataset/model and see if you can reproduce the memory increase.