If your pain is not there right away sounds like a biomechanical thing. Can you get a fit with cameras and markers to track knee and foot movement? Maybe an initial video when warming up and another after riding for 30 minutes and determine if fatigue changes the way you move on the bike. Any low back issues?