Chosen Solution
When any camera app is launched, the phone makes a buzzing sound and the image vibrates. It’s as if there was a mechanical zoom or image stabilizer system that had become possessed. Without warranty, I figure I would attempt a DIY repair.
You can do as HTC One M8 teardown from ifixit. You also can see that HTC One M8 daughterboard replacement video. After removing the daughterboard,you can remove the rear camera easily.
HTC One M8 camera focus vibration please solution