Sounds like furnace is starting correctly and lighting main flame but then looses main flame......
Circuit board HAS to receive a 'signal' generated by main flame proving that it is lit. Without that signal.....circuit broad secures dc power to gas valve and lets is close.
Things that cause issue:
Exhaust blocked.......mud dabbers/nests outside vent
Spark electrode not positioned directly over main burner slots where it is engulfed in main flame
Spark electrode ceramic cracked......signal shorts to ground
Dirty/loose/poor connection of spark electrode wire at circuit board
Dirty/loose/poor connection on circuit board multi-wire connector