I would try my darnedest to joke it away. I'm sure my boss has heard me mumbling and grumbling to a compiler more than once. I KNOW my neighbors hear me cussing at my car every time I work on it.
Maybe when you do fix the problem, tell your boss that you finally fixed the error that was giving you fever dreams and panic attacks. Keep it light hearted.
I understand physically crying over computer related issues, I did it myself in 1992, when I accidently deleted a BBS I ran, and backup was corrupted. No shame.