There is another issue, it seems PixInsight cannot open bayered images generated by INDI. I tried to debayer a FITS image and it reports "Missing or invalid CFA pattern description property".
However, if you inspect the FITS header, there is already BAYERPAT property. So what's the problem?
Here is the FITS bayered image: https://www.dropbox.com/s/e3xco2rv7z6aaxw/m42_bayered.fits?dl=0
You can debayer any raw CFA frame without problems. Just select the correct Bayer pattern manually on the Debayer tool (or, equivalently, on the BatchPreprocessing script).
BAYERPAT is not a standard FITS header keyword, so there is no need to support it in a standards compliant FITS decoder. Our current Debayer tool does not support a BAYERPAT keyword.
Having said that, we already support a number of nonstandard FITS keywords for convenience. I'll add support for this one and a few more in the next version of the Debayer tool.
The XISF format, by the way, has standard formal resources to serialize CFA patterns, among many other essential image metadata items. Unlike FITS, XISF is a strictly defined and really extensible format where interoperability problems like this one cannot happen.