Try and work out where abouts the pain in the knees is. You may just be pushing too hard too soon or it may be bike setup. I did a 26 mile round trip 5 day a week year round commute for 17 years. Loved it, and fittest period I ever had on a bike. Now it’s rides from the house in a loop till more normal times arrive.