At high revs, engine vacuum is much less. At low revs, poor vacuum is going to be a noticeable problem. My guess is it’s going to be sucking air from somewhere.
Pinch off the HVAC vacuum line. Remove the brake booster line and plug it.
That removes significant areas of vacuum that won’t set error codes etc.
You could get lucky and see the idle and stuff fix it’s self. Then you’ll know it’s either the HVAC system, or a leaking booster.
Make a bottle of soapy water. ⅔ water, ⅓ Dishwashing liquid or shampoo. Spray around points of vacuum. Under the inlet, hoses into the inlet. Down the back of the inlet, there’s a t piece that can leak on that pipe from the manifold. Spray around the cam cover seals, the sides of the coils, throttle body to inlet point. You get the idea. If there’s a leak, you get bubbles.
Costs no money. Takes 30mins.
Now this is no way is definitely what it is, but this is a simple thing you can do yourself and it does eliminate just one possible cause of your problems.