What you described sounds like a faulty crankshaft position sensor. When they start to fail, they are affected by heat.
Take a look through this ink and let me know if it mirrors what you experience:
If it does, this is what I suggest. When it won't start, check to see if there is spark to the plugs. If there isn't, suspect this sensor. Here is a link that explains how to check:
If you confirm no spark, chances are this is the issue. Here is a link that explains how in general how one is replaced:
If you look below, I attached the directions specific to your vehicle.
Let me know what you find or if you have questions.
See pic below.
Thursday, June 2nd, 2022 AT 5:21 PM