You need to check for any codes recorded using something like this Temu | Explore the Latest Clothing, Beauty, Home, Jewelry & More
Also a read of this Battery charging malfunction - Technical Area / Electrics & ICE - MX-5 Owners Club Forum may be of use.