I’ve noticed these garbage edges in other Sony camera’s recently. See e.g. Border interpolation artifacts with APS-C crop (Sony ILCE-7S) · Issue #6654 · Beep6581/RawTherapee · GitHub and related How do we handle cropped raw images? · Issue #3960 · Beep6581/RawTherapee · GitHub
As for the raw_crop, you’re not following the correct syntax. First coordinate is number of pixels to crop from the left, second coordinate is number of pixels to crop from the top, third number is the desired resulting image width, fourth number is the desired resulting image height.
Putting negative numbers in the first two coordinates does not make sense. Putting negative numbers in the last two should work because that effectively indicates you want to crop pixels from the right and bottom, respectively.
For example
"raw_crop": [ 0, 0, -36, 0 ],
Gets rid of the garbage for me.
Your second option does not work, because you’re not actually removing pixels from the right side of the image. (24 + 7008 = 7032, which is the full width of the image).