I can’t help you with your stacking issue but I’m quite certain it has nothing to do with SGP. SGP is just collecting monochrome images and has no idea about the bayer matrix of the image. It’s just copying monochrome pixels.
Focus your efforts on the processing that is assuming the camera does not have a problem.