Using ramp tool or spline tool creates major cliff stretching, any way around this?

Hi so I noticed that using the ramp tool or spline tool say, causes a lot of landscape texture stretching when you cut through a mountain or along cliffs. Even the flattening brush can cause it as well if it is deep enough . Is there any way to avoid this ? thanx

You need to look at triplanar mapping in your material: