I have a scene background with width 2048px and the sprite-sheet max dimension also set to 2048px with 2px padding. In theory, the export should be fine but the actual calculation is including the padding even if an image is suppose to stick to the edge of the sprite-sheet, which make the export fails.