I vote for bad backfire, thanks to a mislead from the defect O2. After that the PCM readjusted itself.
probably wanna check all the codes, repair whats broken and then take the batterie off for a while to reset the PCM / BCM
then drive it normally.
I once hat a backfire in my Camaro, sounded like the car was ripped apart. My first and only misfire