I would have gotten to that point quite a bit earlier than you. Here are my thoughts, yet topics can only be answered by you.
Many projects come down to tradeoffs among scope, schedule, and resources. What is the scope that needs to be done (more than you thought and uncertain how much more), schedule (when do you need the project completed), and resources (how much time you want to spend on it, or spend to bring an expert onboard, or spend with new equipment).
Those tradeoffs all depend on the individual and the individual's situation. Yet, it usually starts with stepping back and acknowledging reality (whatever it is for you), making decisions on how to move forward, and then taking those steps. It's often hard, yet it's often a healthy thing to do.
Pretty standard with projects to have checkpoints on how things are going, reassess, and make course corrections to head towards a better outcome.
Sometimes, reassessing one's needs for the result can be fruitful, too.
The frustration is real, and I acknowledge that. Sometimes taking a break from the project brings new ideas as well. Hope these thoughts may help you move forward.
John Wheeler