This is the reason for string theory, which was created in the 1970s when physicists began to see the advantages of treating every particle as a vibrating string rather than as a dot. If electrons (and black holes) are treated as one-dimensional, like a loop of string, instead of as zero-dimensional, like a point, the infinities in general relativity and quantum mechanics miraculously disappear.