What does one do in the below scenario?

1) I had a knee injury and could not sit in tashahud position so I was kneeling

2) I did not realize that the injury is better and continued to kneel until later on I realized is my salah ok

3) In one of the Salats I forgot that the injury was better and I kneeled between the sajdah instead of sitting properly is my Salah ok?

All ok