I also, too, go through that. I don't have much advice for you, to be honest. My family always got mad at me when I did that, especially since I would invade their personal space because they are really messy. When I used to clean near them, since they are messy, they would mess it up five minutes after cleaning causing a lot of panic attacks and more anger in the house. I did get diagnosed with OCD, but I think it was because I am obsessed with other things which then results in cleaning a lot.
You did say that your knees hurt from cleaning so much. Maybe set schedules throughout the day to where it gives you some time to clean? Don't make it too much, though. I'd say do it after each meal. Breakfast, lunch, and dinner only. Of course, also pick up after yourself throughout the day, especially when it comes to snacks so it doesn't attract bugs. When it comes to sweeping, the dishes, and other things of that nature, do that after each meal. If you feel yourself in pain, take a break. Take deep breaths, and distract yourself to regulate yourself. After that, go back to it.
When it comes to work, I don't know what to say especially since, sadly, I can't work in person at the moment.
I hope some of that helps knowing that I, too, go through a similar experience and I hope that little bit of advice even helps out 1%. Take care of yourself, okay? <3