Assuming you are not using a Docker install then you can start node-red in safe mode, where it loads the editor but does not start the flows, using the command node-red --safe
then you can fix the flow and when you deploy it will start it running. You will need to stop node-red first, how to do that depends on how you installed and run it. Possibly the command node-red-stop
will stop it.
If you are running Docker then the technique for starting in safe mode is different.