Check the gas pressures with a manometer. Flame should be blue and not orange.
If the heat goes out within a few seconds of coming on you can have a clogged orifice, very left hand one, at the ignition and flame sense area. Spiders seem to like that orifice. Turn gas off at the external gas valve. Remove the gas pipe to the main valve, remove the 4 screws holding the manifold in place, examine all the orifices.
If you see a clog, remove the orifice (3/8" or 7/16" wrench, depending on what Hayward installed) and push the clog backward out of the orifice. If you don't remove the orifice the clog will just move to another area.
These are the easiest manifolds to remove and replace. While it is easier if you remove the wires from the main valve, you don't have to if you are careful. If you do, take a cell-phone picture first to put them back where the belong.
Be sure to use a bit of thread sealant when reassembling the gas line EXCEPT on the union. Make that very tight. Do not tighten the pipe into the main valve beyond where the old sealant shows, you can crack that valve if you overtighten. Use some soapy water to check for leaks. If not comfortable working on gas plumbing, hire a pro.