S.H.
Can you do swimming?
I was a runner too and cross country.
My knees got punished.
Or, perhaps see a physical therapist. They can properly address your knee issue and recommend proper exercises for it and what you can/should not do.
OR, you can do exercises, while laying down on your back. So no weighted pressure is on your knees.
Think of different ways, you can vary the exercises.