If it Happens to you again, and its not deep or to muddy where you can get out. Shut your machine down and jump off and start throwing water onto your engine and cool it down. Do that for a few minutes then start it up and you should be good to go till the next hole it happens. What happens is the engine is extremely warm (

Of Course) the water turns to steam when it hits the engine and that steam gets trapped under your gas tank cover. Your air intake is under the the tank cover as well. When your carberator takes in all that steam which is very warm

causes te air/fuel mixture to get all screwed up and the engine will not run right.
With you having a 05 and having side vents on the covers there really isn't much you can do besides snorkel your grizz or you can cut a hole in your tank cover where the intake is for the air box lid so your machine can get fresh air all the time.
Its problem I use to have with my 02 till I got the new panels with vents like yours. The vents has crued my problem. If this is something that normally happens to you, then you might want to think about snorkeling your intake, and that will be a complete fit to that problem for ever!
Good luck, ride safe