Hello and welcome.
As a starting point, you will need to have your thermostat replaced.
Once that has been done, you should clear the codes and drive the car again.
Hopefully the propblem is rectified.
If the stalling continues, it is most likely due to a failing cam or crank sensor.
I hope that is helpful, please let me know if you have further questions, or if I can clarify anything for you.
It has been my pleasure to help today and I wish you the best of luck with the vehicle.
If satisfied with my assistance, please press the green ACCEPT button so that I may be credited for helping today. I am not credited or compensated whatsoever until you press the green ACCEPT button. .
PLEASE DO NOT FORGET TO PRESS ACCEPT