When this happens, try and unplug your water temp sensor on the coolant neck. It's the 2x wire one that goes to the ECU, see if that helps or unplug the AFM
It could be when your car is warm/warmer the cranking enrichment isn't enough to get the motor going.. it could be a mixture of things, dirty/faulty AFM, faulty FPR, dirty injectors, etc.