Take out the hard drive. Power it up and go to the BIOS.
Does it still crash after a period of time?
No? Your hard drive is probably defective. Replacement SSD's are not too expensive.
A question. Does the "click" come from the laptop's speakers or is the sound inside the case?
Let us know how the experiment goes.
Be sure to update everything from HP web site including BIOS.
-
[link|https://HP Envy x360 m6-w105dx|Updates: HP Envy x360 m6-w105dx]
+
[link|https://support.hp.com/nz-en/drivers/selfservice/hp-envy-m6-w100-x360-convertible-pc/8499296/model/8901596|Updates: HP Envy x360 m6-w105dx|new_window=true]
Something to try:
Take out the hard drive. Power it up and go to the BIOS.
Does it still crash after a period of time?
No? Your hard drive is probably defective. Replacement SSD's are not too expensive.
Let us know how the experiment goes.