Culprit is the ECU. I had the same issue and lasted little over a year and multiple visits to Honda South and Khair Karachi they couldn't diagnose as it was a random occurrence that got worse over time and eventually the accelerator also failed for 2-3 seconds twice in the last week, that is when I finally decided to seek help from someone other than Honda.
Took it to a workshop who's owner also had a Civic for sale, they swapped the sensor on the brake peddle, didnt fix, then swapped the ECU and it was fixed. Tried repairing my ECU but it completely died in the process, then got a kabli replacement for 1.25lac and been almost 10 months problem has never recurred also since the japani ECU installed fuel average seems to have improved.