2007 Honda Accord Brake Light Issue

I would suspect the brake light switch (sometimes called the stop light switch) that is mounted on the brake pedal. They get flakey sometimes and are cheap to replace.