This is a bit late, but if anyone sees this it may still help. Usually when a Samsung device boots up or boot loops (without hitting the power button) when the battery is inserted, it’s an issue with the power button. If it automatically boots to the recovery menu when inserting the battery, it’s an issue with one of the volume buttons.