I have a 97 ford expedition. The engine light came on and the code was p0170. on 1997 Ford Expedition

Light went off but now is having a hard time starting. Sometimes have to wait til it is completely cooled down. What could it be?

that sounds like a heating issue, type your dts code p0170 and it will take you to a site that specializes in dts