By definition, what makes a pass forward versus backward?
There's video floating around of this play (or one very, very similar to it), the only difference being it was as time expired and A recovered in the EZ and it was declared a TD.
Not to cross streams with a different rule code, but I don't believe this would be considered a forward pass in NCAA rules (, 2-19-1, 2-19-2a7-3-2-b)... Unless you're ruling that Bubba intended to throw the ball out of the EZ to the 5. My reasoning is that he obviously is not intending the for the ball to be advanced, and I don't believe ruling that throwing the ball up in the air in celebration is a forward pass is what the rulemakers intended here, for either code.
I'm not sure the right course of action here is to bail Team B out here by declaring it an illegal forward pass, in their possession. I can't justify telling Team A that yes, you recovered the live ball in your own EZ (assuming that it wasn't blown dead, since the scenario didn't say it was), but B's foul actually killed the play before you recovered, so A gets just two points, instead of 6.
So, if it were me, I'm giving signal 5 (TD), ruling that the ball was possessed, then willingly fumbled by Team B, and A recovered in the EZ for a score.
(which, I believe, is what the officials in the video did.)
Probably an unpopular opinion, but, that's what I'd go with. And Team B's coach is going to lot madder at B20 than he will be for us calling it a TD.
(Modified as it is a safety, not a TB.)