I think your problem might be in the fuel trim setting...
Have you tinkered with the trim dial that's on the side of the computer box? (Under a rubber plug) It's said to trim the fuel amount at idle but I found it altered how the motor ran further up the rev range.
That dial has a range of maybe 2 revolutions each direction then it has no effect and can even become disconnected so don't dial it too far.
If you do any adjustment to it take a ride of 10 minutes or so, I think the CPU has to learn the new setting? On one of my 98's I turned the dial pretty much cause it didn't seem to change anything then went on a ride and after a few minutes ran horrible, all rough and cutting out, I think it even died.. took me awhile to discover the dial was the cause.. so, turn at your own risk and only about a quarter or half turn at a time.
This on the p8 cpu in the 98 EV, after that (99 Bassa, 2000 EV with the 5m the trim is set with computer via guzzidiag or techno research software.
I think the FI supplement manual tells which direction to dial for a leaner mix.. I don't remember. now, that was probably 9 or 10 years ago.
If you had a Co reader you could know just what the mixture is while idling.