You're asking when it's time to quit, and for that I have the same answer no matter what the obstacle may be in life.
You NEVER quit when it's something you're passionate about, something you dream about. Things will get tough, but you grow, learn and overcome the challenges, and not only will you reach your goals, you will become a better person in doing so.
You SHOULD quit if whatever you're doing is done for the wrong reasons (to get approval, to get money, to feel significant etc).
So what should you do about this project?
Well, if you're passionate about THIS project, step back and find out how you can improve one piece at a time.
It will be tough, but it will be worth it.
If you're passionate about making games, but not this project in particular, I would say find another project that sparks your interest, and use what you've learned so far to avoid ending up in the same pitfalls again.
Every project will have phases where it all feels hard and discouraging. Don't let that stop you.
You know in your heart, and in every bone in your body what you truly want, so go for it. ?
I hope this will help you decide.
And best of luck, no matter what!