Are you going to replace it your self or have someone do it? Replaceing the battery on the M8 (and M7 and M9) require you to take the phone apart. Is this something your capable of doing?
If so there are several reputable cell phone parts places out there. I would list a couple but last time i did i was banned for a few days so ill avoid that for now.