HTC One M7 stuck on boot
You need to run/flash the official RUU file from HTC that either matches your device's current firmware level or is newer. This will rewrite the partition table, and all data on the device back to factory condition. If that does not work to bring the device back into service, you will likely need to send it in to HTC or replace it.