Clean Up - Set Large Vertical differences to undefined

I need to throw out vertical vertices of lines that exceed a threshold. In this case go to zero. I don’t believe there is a current way of doing this correct?

Can you do a project cleanup of those lines and set elevation outside the range to undefined? I have never tried it before like that, but it may work. Figure out the lowest “good” elevation and set your lower tolerance below that maybe?

Good thought but that didn’t work. I actually don’t know if this works for 3D lines because I put my threshold greater than the elevation of the lines and nothing happened.

Have you tried optimize linestrings?