It seems to be an issue with just the battery. Worst case scenario, you just need a replacement battery. Check this forum out though; you may not need a replacement after all
https://h30434.www3.hp.com/t5/Notebook-Boot-and-Lockup/Battery-icon-with-red-X/td-p/6427487