Just a little more info on the TB45E ECU data. Disconnecting the battery will only erase the STFTs (short term fuel trims). These are very quickly relearned by the ECU.
Erasing the LTFTs (long term fuel trims) requires a Nissan Consult device or can be done with an Ecutalk cable and ODB Scantech software on your laptop.
Long term fuel trims are learned over a longer period (hence why the factory didn't allow erasing every time you disconnect the battery for some unrelated reason) and are not easily influenced by a sudden problem unless it's allowed to persist for a while.