According to this:
https://pro.arcgis.com/en/pro-app/latest/help/editing/modify-feature-vertices.htm
"When you move a vertex, consider the following:
I am editing polyline vertices so their endpoints are coincident with polygon vertices. Every time I move a vertex to a vertex location on a polygon, its Z value gets set to zero. The polygon Z values are zero - I was planning to update the Z values later on. If I try to move the polygon vertex to a polyline endpoint, I get an error saying "the coordinates or measures are out of bounds".
I updated the polygon vertex Z values so they are not zero, and now when I move a polyline vertex to be coincident, its Z values gets change to the polygon's Z value, which is NOT what I want.
How can I move polyline vertices without the Z values being changed?