#114401 added forward compatibility code to remove unsupported socket types and avoid crashing with unknown default_value data. However, this did not update link pointers (which haven't been read at that point), so the tree can end up with dangling pointers. To fix this, removal of unsupported sockets is moved further back to a point where links have been read and can be fixed accordingly. Ported to main from #119630 Pull Request: https://projects.blender.org/blender/blender/pulls/119650