Are you clipped in? I have really bad knees. For me the seat height has to be just right. If I'm using any kind of "connect my feet to the pedals" the angles all have to be just right or I'm toast.
I've found using pedal extenders gives me more freedom to pick the correct angle for clipless pedals.