I have multiple instances of this happening!
I had a desktop that I used for a few years back up until like mid-2003 that I had to stop using because something just...died, in it. It seemed to be working...well, I dunno about fine, maybe decently up until then (lol windows 98 and blue screens galore), but when I booted it up one day and it gave me errors, well, that was it. I forget what I used after that.
I think I might have accidentally melted the fan on a video card in that same desktop, too. I just remember going off to play something, came back, turned my monitor on, and oops streaking all across my screen.
Got a laptop either that year or the year after, the battery on that died after a while. First it wouldn't charge, it had to be plugged in all the time, then it wouldn't power on even with it being plugged in. I never found out the exact reason why it did that and even customer service couldn't figure out how to fix it, so I eventually got a new laptop out of that. That was around 2007 or so, I still have that same laptop even now even though it won't charge the battery up either. Also the fan died on it, or I thought it died, I don't even know by now because it actually seems to work again.
I had another desktop that I got from someone else back in...2009? Used it up until like 2011 or 2012, until the power supply went out. And since it had some weird supply (thank you, Dell) and wasn't one that could easily be replaced...yep, new desktop time.
(Which is what I'm currently using with few problems, thankfully.)