i have gone around and around on this. first i thought, the other poster was right, then i thought it was a semantic misunderstanding, now i think you're being unrealistic.
you are going to earn a snark response with "intervals" headlines when you can barely run 20 mins without pain. (first response). we generally see intervals as fairly full gas, not moderate. (second response). last, more i thought about it, i kind of doubt 3:15-30 is actually moderate for you, meaning i think you are full of it calling that moderate. (finish line). you don't do fairly quick intervals when you can barely handle 2-3 mi slow without pain. common sense.
assuming this isn't troll stuff, my advice would be either
(a) shut down and rest off any short term injury issue you had, where pain is not involved when you come back
OR
(b) if this is a long term chronic thing, tendonitis/arthritis or something like it, i would start short and train/race there instead.
i would go with the second. i have beat up knees and ankles from soccer and running. i am not racing over a mile. i often run shorter stuff, and in any case, i ALWAYS operate on a sort of pitch count. i run no more than a set distance. i run that distance no more than x days a week. as long as i play within that, tendonitis doesn't visit. when i get cute or ambitious is when tenderness comes back.
i do think you could play around with breaking up the distance with something akin to an interval, at a sincerely moderate pace, but if you get pain past 20 min, that says to me you either need to limit the longer intensity or mileage OR drop down if you want to go harder.
otherwise i actually agree with the snark. i ended up doing other lowered leg impact sports for a while and have only come back to running in recent years. and if you're talking 3 min 800s, when you can barely do long and slow very long without pain, that's silly.