Dynamo Package Custom Node Crashing

It happens once a while. I don’t know if there is a way to prevent it happens. Does another one know there is a way to make backup automatically when we are editing custom nodes?

I only upload new package version maybe once a few weeks. When a custom node crashed, it becomes red and uneditable. The .dyf file was saved as a new custom node after the crash and removed from the package folder. Does anyone know there is a way to recover?