This could be a fuel pressure issue so I would suggest starting with checking the fuel pressure when this is acting up and make sure that the pressure is not dropping.
https://www.2carpros.com/articles/how-to-check-fuel-system-pressure-and-regulator
If it is not then most likely you have an issue in the ignition system. I would put my money on the ignition discharge module as this is what controls the delivery of the spark plus if you have had a cam sensor issue then that would be where I start.
I attached the info below on this and how to replace it. Please run through this and let us know if you have question on this.
Thanks
Images (Click to make bigger)
SPONSORED LINKS
Monday, August 16th, 2021 AT 7:44 PM