It sounds like an issue with the can-bus system. CAN stands for controller area network. By chance, do you have the specific codes that were retrieved?
I need to know the code because that will direct me in the right direction. Multiple things could lose communication with the ECU and cause it to stall.
Let me know. Also, let me know as much as you can that you feel may help me further diagnose the issue.
In the interim, here is a link you may find helpful:
Monday, March 7th, 2022 AT 7:01 PM