The biggest mistake I made getting back on the bike after decades was to try and pedal in too high of a gear. My knees started hurting and I read on this forum about that and started spinning if a lower gear. My knees have been fine as long as I remember that.