I don’t know if it also happens to you, but I always have this fear (not only the equipment but also the whole freaking house).
I have two Synology NAS devices and one “custom” server (just a PSU, a Ryzen CPU, two RAM sticks and a SSD).
Everything is grounded, on a compliant safety electrical installation, but I don’t know… I’m maybe paranoiac by nature.
My biggest doubt is about the PSU. It is a certified PSU (from Be Quiet! IIRC), that has more than enough power (500W).
I thought about a similar problem when I bought a 4080 for my gaming rig. I was positive I got the power connector pushed all the way in. And I do leave my pc on when I’m not at home. I only shut down if I know I won’t be able to use it for a day or two. But your fears are legitimate.