Don’t quit to early but know when to quit.
After you’ve exhausted all the options take inventory of all you’ve learned and make a choice.
Choose whether to keep going or start something new.
Just don’t keep doing the same thing over and over again.