One for the longboarders

Lately I’ve been repeating this pattern. I catch a wave on an angled takeoff where I ride along the top half of the wave and look down the line. I see the wave start to section in front of me. I try to react to the breaking section by trimming (this is my mistake) away from the wave face and, hopefully, around the breaking section. So I trim turn my board away from the wave face and into the direction of . . . then my board flips over, gets sucked up into the wave and spit over my head like a flying 9’6” guillotine. THE END. I keep trying to trim my longboard and my longboard keeps trying to decapitate me. Something has to change. I think one of the problems is that I’m on rail and I don’t realize it so when I trim the board away from the wave it just flips over. Another problem is that I’m usually pretty far up on my board (milking it for speed) so moving back to the tail is tricky. My solution: I need to quicken my reflexes so that when I see an obstacle I immediately move back on the board into a carving turn. Anybody else have some insights?