I had this same issue on the return leg of a trip from Texas to Deadhorse Alaska. Had it checked out in Canada, they could find no codes and naturally it was running great. Limped back home, after discovering if I turned the bike off, let it sit for as few as 5 min, it would run fine again ( for a while).
Made it home called the dealer where I bought it, they said “ oh my gosh, we’ve not heard of any of the twins having a problem”. I called a dealer I know (about 200 miles away). Speaking with their lead mechanic, “he said it’s the fuel pump”. I hauled it to them, they ordered and installed a new fuel pump, no issues since.
I also blew both fork seals on the Dalton highway, they fixed those under warranty as well.
2018 ATAS DTC