Hi James,
Welcome to Jaguar Owners Club.
It's Possible if car is running well that it's battery, as it went off after a long run.
Perhaps get battery checked out at garage.
But to be sure I would as above get it checked out with a diagnostic reader, as it could be a variety of things..
Kind Regards,
Julie.