I would check the O2 sensor first as an easy one. Next, if this does it only after warmed up it could be a bad catalytic convertor, which also means something else is wrong. And you might check the throttle position sensor. 2 of those are easy fixes.
It also could be a short. And those are not easy to find.
Black Diamond/4-door/mid pkg/2.7/MIC/rack/towing/Eruption Green/res 7.13.20/ord 2.8.21, then 10.15.21/built 1.21.22/delivered 4.15.22
Gunstock Off-Roadeo 10/29/22/Steel and Stirrups Traveling Lamp holder 9.23
Gaia GPS