Very unusual, with the fans coming on & engine light coming on
I may well be way off track here but
I would be checking the coolant temperature sensor, perhaps it is faulty and spiking,
showing extra overheat hot at a point in the warming up of the engine and then reading correct to get back to normal afterwards?
I would connect my scanner and watch the coolant temperature reading to see if it shows something unusual as the engine warms up.
Sorry, I could be way off but I think it is somewhere to look.
Best of luck!
