Chosen Solution
The battery dies at around 47% and goes into an infinite restart loop unless I charge it then it starts charging and functioning normally. And it gradually each day has less charge and starts dying, for example, 47% today and probably 50% in two days and so on. Funny because the battery I am using is from ifixit! I did everything right to install it and calibrate the battery and was very careful!
Your battery may be defective. To be certain, use a battery utility, such as coconutBattery (for Mac) or 3uTools (for Windows). It will tell you what the health of the battery is. Anything less than 80% of design capacity will require replacement (contact iFixit support).