That's a long story Deepak - and in doing so, I optimized not for money but for fulfillment and personal growth.
I "could" have earned more side-hustling alongside my job - but that'd be at the cost of my soul, purpose, and satisfaction.
Coming to when you should quit, there's no one answer - but it's always a good idea to have your side-hustle match or cross your main job's income for at least 6 months before considering quitting and going all in.
Weigh the individual pros and cons, listen to your gut, and spend a lot of time thinking about it