Bad gas in a Honda Accord? What to do...?

Bad gas would not present intermittent symptoms. I agree with the other poster that it is an ignition related problem. I would try checking all of your plug wires and making sure they are all pushed onto the distributor and the spark plugs. I would check the distributor cap for cracks and I would spray some “wire dry” on your plug wires and distributor cap. This is available at your auto parts store. Your car seems too new to need new spark plugs or wires but you could try changing plugs plus the distributor cap and rotor. None of those are very expensive, especially if you are handy and can do it yourself.