I have had to help quite a few people in your situation over the years of owning a shop.
I would get a couple of quarts of 2 cycle oil or more and add them to your fuel,if you only have 1/2 tank then mix the oil in some diesel before you add it.Then remove the codes and take it for a drive and see what happens.
There should be no damage to anything.
One lady had a brand new Dodge/cummins that added over 3/4 tank of gas it it. She was able to drive 25 miles till she encountered a construction site and had to stop. The truck died and wouldn't restart.
I drained the tank added 2 cycle oil and fresh fuel.New filter and injection lines got purged.
Truck ran fine,she wanted no record of our work because of the fact it was a brand new truck.She sent a postcard 6 months later,truck ran fine no after effects from the gas.
90 Chev 3500 c/c 4x4,6.2na,400 auto,4:10 gears.DSG Timing gears,main girdle, isspro tach, pyro,boost,oil and trany temp.Dual Tstats, High volume peninsular pump,on shelf, Custom turbo and intercooler 85%complete. Change of plans for the dually, it's going to get a Cummins. Both trucks are Blue 90 4x4 crews