Only you can decide if it is time to quit.
I "retired" from music some years ago. The music "business" had left such a burn scar on my psyche, that although I kept my bass, I placed it in its case for a couple years, and I sold off all of my touring equipment. I just was burned out and bitter. Plus, I left NYC after 9/11 and I had some PTSD to deal with.
A few years down the line, my wife pointed out that I was mentally ill

and isolated, and suggested it was because I was a musician and lover of music who wan't playing music or associating with fellow musicians. She was right (again!). So I tentatively dipped my toe back in the water.
At some point I also realized I hated all of my gear and the sound it was producing. That's when I joined Talk Bass. Sold everything. I was also relying too much on pedals in a never-ending battle to get the sound I heard in my head. I decided that I needed to strip down to just me, a bass, and an amp. Through much trial and error, I discovered my love of Warwick basses, which had the sound I heard in my head baked in. Again, a little experimentation until I found an amp I loved.
Fast forward, I have added a few necessary pedals, and a few more basses for range and versatility (and hey, c'mon, I love basses) . I play in two great and very different original bands, writing, recording, playing live, I have the camaraderie that I was missing, and I like my gear and sound. A solid and amazing musician who I look up to in my area has also asked me to start a project with him.
Do I feel great all of the time? No, of course not; some days are hard, life happens, relationships change, I am getting old, etc. etc. But I don't want to walk away from music. One day I will have no choice but to stop, so I am aware and grateful of still having physical ability and a desire to play and for others to want to play with me. In Quarantine, I have had a very hard time focusing or being creative, and I have to let that be the way it is right now. Sometimes I force myself to play another instrument, even though I am not very good at it, it helps inspire new ideas for me.
I hope you find your way, as others have suggested, it's OK to take a break, or change things up, do something else, or quit if that's what you decide. You can always come back if you want. I think when it is ready to change or let something go in life, it is often very obvious.
All the best.