Hello fjgarciam,
Please try the following modification:
chunk.exportRaster(path + "/ortho_" + label + ".tif", source_data = Metashape.OrthomosaicData, image_format = Metashape.ImageFormatTIFF, format = Metashape.RasterFormatTiles, resolution_x = d_x, resolution_y = d_y, save_alpha = alpha)