In my experience, I have never seen anyone place an explicit capacitor at the input of an op-amp for stabilization purposes. As DKNguyen commented, this is more of a representative model of the amplifier rather the actual implementation.
Also, 5pF is quite small!
The value of this input capacitance is, most likely, a sum of several contributors, such as:
Internal compensation capacitor. If it's a miller compensation cap,
it'll appear at the input scaled-up by a gain factor.
The input stages of most amplifiers is sized with a very big multiplication factor (think m_factor*W/L of your input stage
transistor sizes) as you want to boost your gm and, thus, lower your
input-referred shot noise. This has 2 consequences: 1/f noise will
be reduced due to less charges being trapped and de-trapped, and, finally, your input capacitance at the gate (think gate-to-source cap and the gate-to-drain as well) will be increased for the very reason that your gate-oxide area is larger (distances between plates remain the same).
Another reason for a large input stage is because of matching. Larger area, less mismatch variation.
As Tim williams also added, the ESD transistors will also contribute an input capacitance. The ugly part of these components is that their caps are non-linear, thus will contribute to distortion, specially at high input levels (i.e. when they're relatively close to being triggered)
To answer your question, then:
- Fundamentally, a large Cin is a consequence of the frequency compensation measures to keep the amplifier stable. In addition to the noise, ESD and matching considerations at the input.
For 2), it's more complicated to answer without any more details.
I think it's very difficult to say without plots and loop gain responses why you're getting so much instability with a "middle-valued" input resistance. I can only speculate: perhaps, if it's small, your pole is at very high-frequency beyond your unity-gain frequency, and if it's too big, then you're moving it too close, as sort-of-a poor man's dominant pole compensation, but now your dominant pole is in the closed loop, and it overrides your loop gain because the time-constant is so large.
Finally, could you argument why did you connect your cascode input-stage to the op-amp like that? From a first look, it doesn't seem like a good idea. You have a forced a single-ended amplifier into a differential one. Between Q4 and Q2, the swing should be pretty small as you're mostly diverting the current to left side. However, now you have slowed-down that node as it must charge OA1+ terminal now. Certainly contributes to your frequency response.
If I really wanted to connect the input stage differential output to the op-amp, I'd generate the bias voltages for Q3 and Q4 bases elsewhere, and then connect both outputs as you've done.
Otherwise, disconnect QA1+ and fix it to a DC voltage.
Sorry for the screenshots, they were asking me for a subscription to save the circuits...
Single-ended input-stage connection
Differential-connection input-stage. Vbias_ext generated elsewhere
EDIT: REWRITTEN
I should've paid attention to the title of your plots.
The definition of open-loop gain is V(out)/(Vin+ - Vin-).
If you plot that, sure enough, you get that the open-loop response is independent of any source resistance you pick.
https://i.sstatic.net/uSIzo.jpg
If you look at the loop gain V(out)/V(in-), then you'll find that the dominant pole of your loop is a function of your source resistance, obviously. I withdraw what I edited previously, there's instability, indeed, at 100kohm resistance.
While an analysis of your design is quite involved because you're using a bootstrapped cascode, I can tell you that a lot more is affected by your dominant pole due to the output resistance of your differential pair seeing the input cpi and cbc of the cascodes.
In order to verify it, I simplified your schematic to this:
https://i.sstatic.net/uy5Re.jpg
I kept getting no phase margin for Rsrc=100kohm.
https://i.sstatic.net/v4HiF.jpg
As I said before, I suspected the bootstrapped nodes from your bottom current source, through the 22k to the cascode bases.
So, I removed the bootstrapping and just kept the biasing of the cascode with a fixed voltage source:
https://i.sstatic.net/ZsWMI.jpg
Then, I see that the notch in your loop gain is moved upwards. We have decoupled the source of your diff pair and the cascode.
https://i.sstatic.net/FMasE.jpg
If you must use the bootstrapping for either reason, then, adding an RC shunt at the gate of those gate nodes might help. I tried with 1kohm and 100pF, and the notch is moved to a higher frequency.
https://i.sstatic.net/O5nNB.jpg
To summarize, any designer MUST always know his input source impedance before starting any design. Doesn't matter if it's not constant, you must know its bounds before starting any design.
Good luck with your design going forward!