That is very simple; just mask the fractal by that SSS, then add a surface layer with the canyon mask, and set smoothing. The terrain will drop (or rise) to zero. In the latter case, you can use the displacement offset to level it to the way you need it. In order to have it work correctly without using the offset, it's best to use the colors of the fractal to only displace the terrain upwards.
But a subtract of masks would work, and also a black canyon mask after the white terrain mask.