2016~2023 Mazda CX-9 Intermittent revving and engine light issue

I have a 2019 CX9 that with intermittently rev in park for no apparent reason. The engine light has also been turning on randomly. It's been taken to a mechanic to assess, they put in a new oxygen sensor but the problem hasn't been resolved. Any ideas?
 
Do you have the DTC for that check engine light we can go on?
 
Back