Be prepared to miss, but you may hit next time
You are at some point going to fail; very few have managed to get it right first time round. The key is to keep going, reinvent yourself and learn from your mistakes. I’ve failed more times than I can remember. Things sometimes don’t go the way you plan but this doesn’t mean your idea didn’t have any value, it could be due to a number of things. The wrong timing, lack of investment, etc, etc.
Just remember that some of the most famous entrepreneurs failed, but they got back on the hoarse because they knew they would get it right eventually.
Be aware though, sometimes something doesn’t work because it’s just not that good. Don’t try and reinvent something that clearly isn’t going to take off. Take a step back and reinvest your time into another project that you believe will take off.