Don't you love it!
A big reason I like ow races is that they are not predictable. As you get more experienced you will be able to problem solve easier and quicker. It's impressive that you had a 2 min. stretch of "flow" during your first race. If you can, get in some practices in open water so you can experiment in less a stressful environment.