Just a side bar about software causing actual damage to the hardware of a computer. While that is not likely, many many years ago, the company I worked for produced a computer that had bi-directional chip sets for the data in and out of different boards. Those bi-directional chips were controlled by software and if the software had an error and a board was trying to output data onto a bus and at that time had another board putting data on that bus then the result was that some of the bits would be being pulled Low by one board while being pulled High by another board and those bi-directional bus driver chips would fail and have to be replaced. So, it is plausible that software problems can damage some kinds of components on some kinds of computers.
Also, there is the true history of a virus that America produced that looked to see that it was on the correct Iranian centrifuge computer and caused the centrifuges to overspin and be damaged. If a disk drive could be caused to overspun or remain spinning at a very high speed too long it's possible that that could be cause damage.