The first thing I thought of is the intake manifold gasket. They have been know to be problematic on this engine. Yes, that can cause outright stalling if the leak is bad enough....and, especially, erratic idle.
As for the difference between the MAF being connected vs not, the obvious difference is how the computer handles (or doesn't handle) fault conditions. With it connected, the ECM "sees" more air at the O2 sensor when there's a manifold leak. Fuel would be added to compensate while it ALSO would shut down the IAC in attempts to lower the thing to idle. Eventually, it would shut the IAC so far it probably chokes it down. Without the ECM trying to compensate, it's just getting more air -- which is what you do to get an engine running faster.
Many people spray starter fluid or propane (unlit) around the manifold to see if the engine speeds up. With a "fuel-enriched" air leak, it will run even faster. But, this practice can be dangerous if you aren't careful about spraying fuel on hot surfaces!!! People also use inert gas/smoke to look for leaks -- which is more the practice nowadays.
I suspect you can find some education vids on YouTube regarding the diagnosis of an intake manifold leak. I'm guessing you'll find that's what it is...considering what you've tried already. And, based on the symptoms. Good luck!
2001 Ebony VX and 1989 Custom 383 Corvette