Ramps in TanDEM-X data are quite common, at least in my experience. This can occur because of slight coregistration errors or bad orbit quality. Also the phase to height conversion is somehow prone to errors.
Maybe this discussion here helps you a bit:
You can try a higher polynomial for the flat earth phase and the number of estimation points:
One way to get a better unwrapping is to remove the topographic phase, perform the unwrapping and add the topographic phase again after the unwrapping.