Database [Q] HTC One Randomly Dying

I have an HTC One rooted , running sense 6 and 4.4.2 and its to the point where it is randomly shutting off after it hits below 40% - Can anybody help?