Add -limit memory 32 to your command parameters. This tells JPEG not to use optimized Huffman encoding in order to conserve memory. If you get the same exception, try -limit memory 8.
That error is coming from the TIFF delegate library, not ImageMagick. Looks like if you're going to be playing with huge images you are going to need to increase your system memory or swap.