The error "Virtual Switch Edit Error - Cannot read properties of null (reading 'propertiesData')" is observed on the ESXi host.
The following conditions are also applicable:
VMware vSphere ESXi 8.x
VMware NSX
This is a result of the ESXi host having been removed from vCenter Server without first uninstalling NSX or removing the ESXi host from the DVS and then deleting it's vmkernel ports.
To recover this ESXi host, first move it out of the cluster into the "Datacenter" level in maintenance mode. Then reboot the host. Once rebooted, use it's DCUI to select the option "Reset system configuration" to perform a factory reset on the ESXi host, so that it can be reconfigured from the start. Once it's fully reconfigured with the necessary kernel ports etc, it can be re-added to the DVS and then back into it's cluster to get it configured with NSX.
As a reference, the correct way to perform reconfiguration of an ESXi host's management IP address and VLAN is documented in the following KB:
Changing the ESXi server management IP address