How can I stop this effect from happening? (2d)

here is what it looks like on the side

it has a little bit of a weird outline on the rocks, not sure if that has anything to do with the problem, and it only happens when I move the camera at an angle.