Safe Mode puts your phone in a diagnostic state (returned to default settings) so you can determine if a third-party app is causing your device to freeze, reset or run slow.
An alternate method is available if the device can be powered on and is responsive.
Ensure that the device is powered off.
Press and hold the Powerbutton until the HTC logo appears then release.
With the HTC logo on-screen, press and hold the Volume down button.
Continue to hold the Volume down button until "Safe mode" appears in the lower left of the unlock/home screen then release.
Allow approximately 1 minute for the process to complete.
With Safe Mode enabled, test device and app functionality. If the previous issue fails to occur, the cause has been isolated to a third-party app and all recently installed or updated apps should be uninstalled.
Power cycle the device to disable Safe Mode, reinstall then test each app, one at a time, to identify which is causing the problem.