https://github.com/tesseract-ocr/tesseract/issues/4333
This is likely the issue.
I faced the same while using wcgw mcp which also has a separate terminal evironment.
Setting TMPDIR to //tmp helped me.