You could have any of a number of problems. The flame sensor could be bad. The vent air flow sensor could also do it if that is defective. Gas flow could be inadequate shutting off the burner's pressure switch. You should contact a Rheem service person, or else you may start replacing good items and waste a lot of money.