Irfanview can indeed often repair a bizarre header.On the other hand, I personally don't see why you use jpg to save hires scans. jpg is always lossy, and that counteracts the benefit of hires scanning
imo. hires (300dpi or more?) can be used for printing or for zooming into objects (using the scanner as a kind of basic microscope), but in both cases I'd certainly prefer tiff or psd. (and if it were for print, I'd go for LAB mode too)
and indeed: why not use twain to open your scan immediately in PS or Irfan?
my opinion.