You say it didn’t like being left unused for a few months and I think that goes for anything a bit complex.
I’m sure this is probably teaching Granny to suck eggs as the saying goes, but I’ve learned from bitter £ experience with my GT40, Maserati, Aston, Porsche and Bentley amongst others that two of the best preventative measures are a CTek or similar to keep all the voltage hungry electrics happy when not in use and a Carcoon or dehumidifier to keep damp at bay.
These 2 measures alone seem to singnificamtly reduce the appearance of the dreaded CEL after winter storage. I put as many as I can on lifts or axle stands too, to take the weight off the suspension and tyres and keep them out of reach of any rodents who seem to like to eat wiring and make nests out of it. I always use fuel stabiliser even when filled with supposedly ethanol free Esso 98 and with the carb engined cars, I run the engine with fuel pumps off to dry out the carbs to reduce any ethanol impact.
Not saying all the above prevents all storage issues, but does certainty reduce them in my experience.