The error message could raise the failed memory allocation (not the total allocations).
Of also other programs are reporting an out of memory issue, I would this is indeed the case for your workflow. I don’t know, why the task manager doesn’t show the correct memory usage though.
However, you could try to check the memory usage e.g. via psutil.