You are focusing too much on the tool itself, open your mind, take a break, got some fresh air to see a solution.
for example this picture https://pixabay.com/photos/field-farm-su...e-2470985/
displaced to have the one below, I got a problem on the side, some transparencies appeared on the left side (yellow rectangle) after displacement, I just selected the yellow rectangle, use the unified transform tool to stretch out, put the result below, move 1 or 2 pixels to the right, no more problem
for example this picture https://pixabay.com/photos/field-farm-su...e-2470985/
displaced to have the one below, I got a problem on the side, some transparencies appeared on the left side (yellow rectangle) after displacement, I just selected the yellow rectangle, use the unified transform tool to stretch out, put the result below, move 1 or 2 pixels to the right, no more problem