I lost around 5k-7k before actually making money (well, still struggling though), and those I lost were during couple of months or even years when I started doing business and never brought me anything back. After such a big lost, I started to thinking to how making money without spend more (because I couldn't afford to spend anymore money), trial, error, not gave up, trial, error, not gave up, ... , ... , ... (it repeat such a long loop sadly lol).
What I realize is that those lost were actually are my greatest teacher, and that if I quit when I felt like losing and had no motivation that day, then I'd never be myself today.
I am quite happy that I eventually making money, while I know that I still need and have to be bigger.
Quitting or not is a choice, and for you to decide.
Either way you choose, make sure that you did it the right way, and not because you don't have any option left.
Good luck