Have had similar problems with my 1997 S8. Fine when cold, but misfiring when hot and cat light on
Managed to solve it my changing the misfiring injectors, but also rebuilding the alternator, which seems to have improved the current to the injectors and is making them more reliable.