** PLEASE READ **
You are not in grind mode. You are literally (mildly) depressed.
Every project you don't finish makes you feel increasingly unaccomplished, and tech is big on survivorship bias on great successes, while you are there, abandoning yet another github repo.
So you scramble to start building again, because you know you can do it, you HAVE TO do it. Because you feel that's the only moment when you feel you are doing the right thing.
In reality, the relief you feel is due to an oxytocin/dopamine cocktail produced by the rush of making something, that makes that haunting hollow inside go to sleep.
But it is only sleeping, it's NOT going away.
The more desperate you become to get an idea, the less you feel you are getting "worthy" ideas to start with. And you keep feeling worse.
Another side effect: the more you'll keep at this, the sooner and sooner you will feel unaccomplished with your next projects, abandoning them sooner the before, until you will stop building cause you can't take it anymore.
Grinding is about always working, for a reason. You are not grinding.
You are trying to extinguish a fire with matchsticks.
The superficial advice would be "put your energy in a hobby", but honestly it doesn't work that way.
Aside from seeking professional help, TRY to understand yourself better, WHY do you feel you have to build something great, why are you looking for success in the first place?
You know you are not really useless, but why do you feel useless? What is actually "useless and stagnant" (your words) that you are trying to get rid of?
The question might seem stupid or trivial ("duh, who wouldn't want success?") but it is not, and the answer is most likely NOT in your "work".