you probably need to significantly reduce the intensity and duration of your activity, whether it be cycling, gym, stretching, everything.
i had to learn the hard way that rest is as important as activity and without sufficient rest you will continue to ruin your joints and musculature. it may prove difficult for you to believe that punishing yourself with excessive activity is not to your advantage in the short term or long term.
BTW, it's not unusual for doctors to not realize how much some people can abuse their bodies and consequently not advise strongly enough the necessity of rest. i have never had nor have ever advised anyone to seek the advise of any sort of professional sports coach or advisor, but i might recommend that you contact a professional sports coach experienced with highly motived athletes. you may need someone that you trust to help you moderate your activity.