To me it sounds like a LAMDA sensor. Ratio air petrol mixture after burn.
This is part is located in the exaust manifold and has mostly 2 wires coming out of it.
How to check.
Connect a computer and check the readings of the sensor.
Just curious on witch Gasoline are you using I mean the mixture in octane.