Bad high limit possibly, doubt full, is that what your calling the heater sensor? Flow switch again maybe, loose connection on board from sensors?? Worse case bad board, but the fact it runs awhile wouldn't make sense.. Circ pump failing intermittently.
Kill the power, remove the filters, power back on and let it run without the filters in it, and see what happens.