Solution
In VeriStand, there is an option for checking the communication state and restart the CAN Port.
In the System Explorer window configuration tree, navigate to
Targets » Controller » Hardware » Chassis » NI-XNET » CAN » CAN Port Settings » Port and check
Check for communication state and restart automatically. With the option, you do not need to undeploy the project and deploy it again when the communication stops.