I have a 2010 Mazda CX-9 with the 3.7L V6. I have had issues with the valve cover gasket in the past causing a lot of oil to get on all my spark plugs. The other day I was driving it and it sounded like it was misfiring and I had a flashing check engine light. I attached a video of what the engine looks and sounds like. It sounds like it is not firing on all cylinders. What do you think the extent of his problem is and could a new valve cover gasket potentially solve this problem?
https://share.icloud.com/photos/004H8KoYyE3-bDB9Yq8SP4wBw
What are the codes? What do your spark plugs look like? Flashing check engine light means "stop driving immediately" to avoid possible serious damage.
Note that serious engine problems are fairly common for that model:
https://www.carcomplaints.com/Mazda/CX-9/2010/