HELP weird idling/dying issue
So, just got my p11 turbo working again after 5 months of being down cause of transmission issues/being laid off with no money to fix it. I went to start my car and everything is perfect except this weird issue of my car idling and dying. The car warms up like it should, perfect idle no problems, but when it's warmed up(after about 10mins) or driven around it has idling issues to the point where the rpms would drop down to 500-600 then back up to normal idle to 1200rpms then sometimes drop and die. The car drives perfect and no bucking or what not. The weird thing is, if I were to press the brake pedal, turn on my headlights, fans kick on, or turn on the air(heat or air conditioning) the car idles perfect(850-900rpms) and doesn't have erratic idling and won't die on its own. Now, I only have to do one of those things mentioned to stop the car from erratic idling and/or dying which is weird. I expected a vacuum leak or loosened t-bolt clamp from the intercooler pipes somewhere, but all is checked out. I also noticed, when I don't rev or do one of those things above, My fuel pump(walbro 255hp) sounds a little louder than it should be until I press the brake pedal down or turn on the air, but the fuel pressure doesn't change or hasn't changed. I also monitored my wideband and when the erratic idling happens, it fluctuates from 13.1 to 15.7. I don't know if it's the ecu? Maybe its been awhile and the battery has been disconnected or something and its doing "the learning process?" Or because the car has been sitting for awhile and needs to be driven around a little more? I don't know, but honestly I do remember it did the same thing before my transmission blew, but not all the time. Only about 2-3 times a month and it didn't really bother me. It did the same thing for the past 2 years before my trans blew. But now, starting and driving it for the first time, it's doing it non stop. It doesn't really affect me when driving around since I press the brake in at stops, but it's kinda annoying me now.