Needs a reflash. Then have the tech scan it and test everything. Then get it on Ducati's dyno. Mine had a similar issue. Has been gone for now, after being flashed.
But keep in mind, it'll restart fine after 15min. It would happen to mine when shutdown redhot after traffic. Cooling down solved it eventually.