If your having knee pains, a few things may help...
Ride the bike with minimal resistance for 10-15 mins as a warm up.
Wear neoprene knee sleeves through your session. Pretty cheap on amazon. Don’t have to be super tight just snug. They keep your knees warm through the session. If you use knee wraps then wrap over the sleeves.
Take proper supplementation for joint health.
Omega 3s, type 2 collagen, glucosamine, Chondroitin, msm etc
Hydration - make sure you drink enough fluids each day
If doing a compound leg movement (squats, leg press) do your hamstring isolation first. I like seated or lying leg press, 4 sets of 8-12. This is something I always do as per John meadows and it has taken an immense amount of tension off my knees when I do any type of squat or leg press variation.
As far as for bent over rows, HGP is right, you shouldn’t do them if they hurt. The only thing that should hurt is the actual muscle, no joints, tendons or ligaments. Either chest supported rows, bent over rows when your bracing yourself, or even Yates Rows in the smith machine. Cable rows and hammer strength back machines are also excellent. Classic movements are great, but your muscle cannot tell the difference what type of method your using.