This could lead to never finishing anything. OP is asking about how to get through the infamous "valley of death". Just stopping is not necessarily the right action.
The idea that all projects must push through all struggles and succeed is exactly what causes frustration. There can be other goals in life.