Have you talked to an MD? sports rehab therapist?
this is just a bike forum and expertise is not guaranteed ..
My knees are the same age as the rest of me
maybe older..
lower your gearing or stand on the pedals...
join a cycling club ... and there may be better technique to learn from us old folks.
if they figured it out ..