So, 20+ years retired Army. Many back procedures, one surgery, 2 remaining herniated discs, degenerative bone loss in the neck and lower back. If I had to give up riding I think I would wake up in the looney bin. FWIW, I ride street and dirt. Hit the high speed stuff twice a year, I do single track on the YZ, and ADV rides on the GS. Although I don't compete I do enter competitions and I work at not exceeding my limitations as it just takes too long to heal.
Don't give up until it's over and don't become addicted to a synthetic lifestyle, you must stay active to maintain flexibility and a drug addled mind leads to inactivity. Stretch, stretch some more, start swimming, and stay riding.
My .02