It happened to me. It was because the car was overheating. the fan would stay on for a while to cool it down. Had to replace the radiator. Problem fixed. Check if you are leaking coolant and the car is getting hot.
RepairPal Certified shops can diagnose and repair your 2002 Jaguar X-Type. They provide transparent pricing with a minimum 12-month or 12,000-mile warranty on repairs and services.