How do I fill these holes, fill space without information, and deal with overlapping meshes Hello user forums and those interested,

I have scanned a brick using a 3D scanner and the mesh it provided has lots of holes, overlapping mesh, and it missed the extruded interior of the holes.
How can I fill the random holes more efficiently than selecting edges and filling the holes? How do I deal with the overlapping faces? How should I fill the extruded interior?
Try the remesh modifier. This will generate an entirely new manifold mesh made exclusively of quads.