This is a fault that seems to affect 2004/05 cars. Throttle body is where the fault is noticed, but as helpfully pointed out above it is one of the wires leading to it that has a tiny intermittent break in it. A bit awkward to reach, you can remove the air intake box to get better access but the fix itself is pretty simple by just cutting and splicing the wire. It is usually the yellow/green at the point where it joins the larger conduit and takes a 90° turn, but could be one of the others or in a different place. Sometimes it may seem fixed after a trip to a garage but that is just because the wiring loom has been moved about a bit and continuity has been restored.
A possible test is to wiggle the conduit when holding the throttle at a constant rpm, the wire is connected to the bottom of the throttle body - the upper connection is not related.
This thread probably has the most complete answer.
https://clubjazz.org/forum/index.php?topic=8695The engine light will self extinguish if the ECM receives a long enough sequence of valid readings.
--
TG
(I don't hold a monopoly on this info, anyone is welcome to quote or repeat it)