Dryer stops heating

Start dryer, glows, ignites flame comes on. Looks good. About 5 minutes into cycle, shuts down. Flame goes out.
Replaced thermal switch and High temp thermostat (comes as a set). Installed parts, cleaned out vents. Nothing plugging up dryer. Still doesn’t work. What else could it be? Gas comes on with no problem. What else should I check?