NetCDF-CF writing: Segmentation fault and metadata issues with SNAP v9.0.4+

Thanks for the report. I was able to reproduce this.
We will investigate this further: [SNAP-3509] Invalid memory access error occurs when writing NetCDF-CF file

It has been reported before Java error “invalid memory access” - snap - STEP Forum (esa.int).