Any heating and cooling Guys out there? I have a question

The flame sensor needs to be replaced then. A cleaning likely will not fix it. If I am correct the sensor comes as an assembly , igniter, sensor, spark ETC. Wouldn't hurt to do them anyway, cheap insurance. Getting in deeper the gas valve could be dropping out before main ignition as it is timed through the circuit board or the board it self. Trouble shooting I go for the easy and least expense first. Tough trouble shoot from a distance. But flame sensor is likely your issue. Do that first. I hate tossing parts at something till it's fixed but my best guess from here is the flame sensor/pilot assembly.