The times that you can get the MIL to come on; will it stay on or does it come on for one or two seconds and then shut off?
If it just comes on and then shuts off; that’s the bulb check for the instrument cluster; all warning lights in the cluster should do this. The bulb(s) check should happen every time you turn the ignition too the run position; that’s after the ignition has been off long enough for the memory of the cluster too completely shut down; likely your 8 seconds.
The MIL should blink off at the end of the bulb check and then come back on; if the ignition switch is left in the run position, engine off.
The MIL light, after the bulb check is controlled by the VCM/PCM (engine management computer). The easiest way to test the circuit; would be with a scan tool commanding the VCM to turn on the MIL. If the VCM doesn’t or cannot turn on the light; you would then have to find out whether it is a wiring issue between the VCM and instrument cluster, whether the light driver (switch) inside the VCM has lost the ability to ground the circuit or the instrument cluster has an internal issue not allowing the light to come on when requested by the VCM.
To test all of this would mean a good working knowledge of the system, accurate wiring diagram(s) and test equipment; ie scan tool and digital multi-meter.
Dan.
Canadian "EH"