I had the same issue with a Kohler CV25S. Started right up and ran for a couple seconds. It turned out to be the fuel shutoff solenoid. The wire going to it broke somewhere(couldn’t find where) I ended up running it disconnected and seems to be fine.