Connect a battery charger to the 12-volt battery and try clearing the DTC's. Most of them are typical for a low 12-volt battery. I recommend that you return the car for a refund if any of the error codes fail to clear. The number of QC and L1/L2 charge cycles is way high for the odometer reading--this could be due to previous drivers topping off the battery after driving only short distances. Deep-cycling the battery may improve the accuracy of the LEAF Spy readings and could result in loss of one or more capacity bars as the BMS learns the true battery capacity. It is possible, but not likely that the AHr, SOH, and Hx numbers could improve after deep-cycling the battery.
It should be noted that comments here about manufacture date and battery chemistry apply to USA Leafs and may not be valid for Leafs made in Japan or the UK.