Computers don’t make mistakes, as suck, but they can make errors. When your laptop crashes, it has gone into an error condition where it fails to run the computer code effectively.
If anything, the ‘mistake’ is that of the human who produced ineffective code or faulty hardware. Or it’s a simple case of the users asking the machine to perform a task that’s outside its normal operational envelope.