The NaN error is telling us the onboard BMC logic is not communicating to the systems SMC logic.
+
+
Make sure the cable from the battery is not damaged and the connection interface is fully mated and the pins are not damaged.
+
+
If that fails to fix things then you’ll need to take the logic board out and inspect it for liquid damage on the other side as often a spill into the keyboard will leak onto the logic board. Post a few pictures that are sharp and well lit so we can help you find the damaged area and then figure out how to proceed. Use a soft paint birch to dust the board down and use a can of caned air to blow the debris away before taking the pictures if it’s really dusty.