Spline Mesh Component weird deformation at corners

Does anyone know how I might fix the spline mesh component generation for this level tool I am creating?

The main issue is the deformation that happens at sharp corners (90 degrees) on linear splines.

I have tried adjusting the tangents of the spline points but nothing seems to work.