I FOUND THE PROBLEM! I took my phone to a repair shop and they replaced the power module. It fixed the problem but cost me $75. My Nexus 5 was constantly rebooting and would never actually turn on fully. Luckily, I bought the phone used and had it for 2 years before any problems.