Chosen Solution

I lost my note 5 and it ended up sitting outside in the rain. Initially it would not charge or run at all so I turned on my old s4 and let my note 5 dry out for 2 weeks with the Sim card removed for the last week. My phone now works, Camera is clearAll speakers work perfect* Makes/Receives calls* Speakerphone and Music play clearScreen has no damageAll buttons workHolds a chargeDoesn’t get hot or overheatCharges (only while powered off)Works flawlessly when it is on and NOT plugged in.
The only problem is that if it’s ON and you plug the charger in it will start rebooting, and as soon as it reboots and goes to turn on it will reboot again, so I have to charge my phone while it is powered off, which is a problem when it’s my alarm for work. When it is on and not plugged in it doesn’t freeze, reboot, or have any other working/running issues. I have also already tried doing a factory reset to see if it would help and it didn’t. Could the battery be damaged, or possibly something else?

Sounds like there is a short coming from either the charger port assembly itself or the charging / power management circuit. You would have to open up the phone and clean up any remaining corrosion and water damage and also possibly change the charger port. This is probably a very difficult process judging on the phone you have. Because I’ve opened a Samsung Galaxy Note 4 before which should be at least hard or harder than that one.