I see, ok I used to have the exact same problem. It would stall after it had warmed up. And sometimes would not run again untill I left it for a few hours.
I have a thread on here on what I went through untill I got to the source of the problem.
Long story short, it ended up being the CAS (crank angle sensor). Change that and car ran perfectly!
I’ll find the thread and send it to you. There is another thread online that shows how to change it properly. (That’s if you’re is a DOHC)
This is the thread: