If AHT fails, then you have a hardware problem. If it passes, then create a new user account and try that for a while. If the problem persists, it's a system-wide problem. If not, it's localised to your account. This helps to track down where the problem is 🙂