You could try refurbishing your battery using a grid charger (like this
https://hybridautomotive.com/collections/store, or DIY) to balance the whole pack or take it apart and balance the modules individually and replace any poor performers. Or you could just leave it as is and disconnect the 12v a few days before inspection time to make the check engine and IMA lights turn off. If you're doing mostly highway driving, you shouldn't lose much mileage. That's the saving grace of the Insight and Civic hybrid, even though the batteries like to die, you can still drive the car when it does.