I'm very new here, so please be patient with me

I've composed several (thousands) small jpeg files into one big jpeg file of 32768x32768 pixels. I've done this through a batch script that iteratively calls the 'montage -mode concatenate -tile etc...' command.
But it seems the resulting file has some problem as I can't open it with any of IMDisplay, nor Photoshop.
IMDisplay prompts me the following error:
IMDisplayDoc function [DoReadImage] reported an error
imdisplay.exe: Application transferred too few scanlines
Photoshop CS2 tells me:
Could not complete your request because of a problem parsing JPEG data
with Paint Shop Pro X I can get at least the following file info:
Image Format: JPEG
Version: 1
Compression: Huffman - Standard
The strange thing is that I can successfully do any preview of the image, both with ACDSee or even Win Explorer.
Is there anyone having a clue on where's the issue and if I can fix it somehow ?
Thank you
Lorenz
P.S. of course, the original jpeg files don't have the same problem