Be patient blobby. Take some time off playing and don't think about it for a week or two. Set a date when you will pick it up and have a practice, say two weeks from today and forget about it. Then when that day rolls around, (hopefully you may even be looking forward to it) pick up your bass and play your favourite song. If it doesn't make you giddy, put it back down and try again in another week.
If you find you fail to get a buzz after 2 or 3 attempts, it may well be time to give it up.
I have tried this technique myself and encouraged my drummer to do the same, we are both still playing 😄
It is a kick in the nuts when bands you have poured work into fall apart for whatever reason, take your time, lick your wounds and try again when you are ready.