Short Answer:
You should check out the Scale of Science Fiction Hardness. The more plausible and realistic the scientific and technology in a story are, the higher its score on the scale of Science Fiction Hardness.
https://tvtropes.org/pmwiki/pmwiki.php/SlidingScale/MohsScaleOfScienceFictionHardness
It is my opinion that a science fiction - not fantasy - story could be set in your asteroid field if the writer was willing to accept a low score on the scale of science fiction hardness. Thus once the asteroid field is created, it should take comparatively little periodic or constant applicated of super advanced science & technology - or magic - to keep it functioning.
Long Answer:
The asteroid field will have a volume of about 4.1 X 10 to the 21st power cubic meters if you have done your math correctly.
Earth has a volume of 1.08321 times 10 to the 12th power cubic kilometers. Since there are 10 to the 9th power cubic meters in a cubic Kilometer, Earth has a volume of 1.08321 times 10 to the 21st power cubic meters.
So your asteroid field should have a volume of 3.7850462 Earth's volume. Assuming that its perfectly spherical to make the math easier, the asteroid field should have a radius of approximately 1.558441 of Earth's radius with a mass of approximately 1.0 Earth Mass.
According to this surface gravity calculator, https://www.omnicalculator.com/physics/acceleration-due-to-gravity, with a mass of 1 Earth mass and a radius of 1.558441 Earth radius the outer surfaces of the outermost asteroids should have a surface gravity of 0.4123 g, Earth's surface gravity.
According to this escape velocity calculator https://www.omnicalculator.com/physics/escape-velocity with a mass of 1 Earth mass and a radius of 1.558441 Earth radius the asteroid field should have an escape velocity of 8.96 kilometers per second - which is 0.8010012 of Earth's 11.186 kilometers per second.
So in this case the escape velocity is 1.9427 times as strong, relative to Earth's, as the surface gravity is relative to Earth's. Thus the surface gravity and the escape velocity of an astronomical object should be calculated separately, since they don't vary to the same degree.
The surface gravity is important for how comfortable a world will be for humans to live on the surface, while the escape velocity will be important in determining how well a planet - or in this case an asteroid field - can keep its atmosphere.
According to pages 34 to 35 in Habitable Planets for Man, Stephen H. Dole, 1964,
https://www.rand.org/content/dam/rand/pubs/commercial_books/2007/RAND_CB179-1.pdf
There is a rule of thumb formula to calculate how long a world would take to lose enough of its original air for the remaining amount to be only 1/e, or 0.3678 of the original amount.
It depends on the ratio of the world's escape velocity divided by the root-mean-square velocity of gas particles in the exosphere, the super thin outer layer of the atmosphere, where gas particles escape from.
Table 5 shows how long a planet would take to go down to 0.3678 of the original gas at various ratios.
At ratios of 1 or 1 the time span is instant.
At a ratio of 3 the time span is a few weeks.
At a ratio of 4 the time span is several thousand years.
At a ratio of 5 the time span is about a hundred million years.
At a ratio of 6 the time span is "infinite".
So a comparatively minor change in the ratio can change the time it takes for a world to lose its atmosphere into space from instantly to infinite.
According to calculations, the outermost asteroids in your asteroid field would have an escape velocity of 8.96 kilometers per second.
If the root-means-square velocity of oxygen particles is less than 1.49333 kilometers per second, your asteroid field can retain 0.3678 of them for an infinite time.
If the root-means-square velocity of oxygen particles is less than 1.792 kilometers per second, your asteroid field can retain 0.3678 of them for about a hundred million years.
If the root-means-square velocity of oxygen particles is less than 2.24 kilometers per second, your asteroid field can retain 0.3678 of them for several thousand years.
According to page 54, the exosphere temperatures in Earth's exosphere are from 1000 to 2000 degrees K. Dole says that if the exosphere temperatures are no more 1000 degrees K, the speed of atomic oxygen in the exosphere should be about 1.25 kilometers per second, and an escape velocity of about 6.25 kilometers per second should be enough to retain 0.3678 of the original oxygen after about a hundred million years.
But what if the temperature in the exosphere is higher producing a greater velocity of the oxygen? The asteroid field might lose oxygen more rapidly.
The temperature of gas particles in the exosphere of a world is believed to be caused by hard ultraviolet radiation from the star, and not by the other frequencies of radiation from the star.
So maybe the asteroid field could orbit a star which is cooler than the Sun, and emits much less ultraviolet radiation, thus lowering the temperature in the exosphere and he velocities of the gas particles.
Maybe there is a giant sunshade between the star and the asteroid field, transparent to most wavelengths but opaque to ultraviolet, thus keeping the exosphere temperature lower.
Maybe the asteroid field is in interstellar space, light years from the nearest star, and has an artificial "Sun" to illuminate it, one which doesn't emit much ultraviolet.
Planets also loose atmosphere from other processes. One such process is particles from the solar (or stellar) wind striking the atmosphere and knocking gas particles off into outer space. Since those particles are charged, Earth's magnetic field deflects most of them away from the atmosphere, slowing down atmospheric losses.
Maybe the wizard will have to build a gigantic magnetic field generator to protect the asteroid field's atmosphere from any stellar wind. Unless it is in interstellar space and has an artificial "sun" which would be designed to not produce a stellar wind.
I also note that the planet Venus has a lightly lower escape velocity than Earth, has no magnetic field, and is closer to the Sun and faces a stronger solar wind. So it should lose atmosphere due to solar wind much faster than Earth does. And yet the atmosphere of Venus left after Billions of years is many times thicker and more massive than Earth's atmosphere.
I note that an atmosphere will be denser the closer it is to the surface of a planet. Considering that the surface of the asteroid field surface has gaps between the asteroids, the atmosphere should extend down to the center of the asteroid field, getting denser and denser with depth. If there is an Earthlike atmospheric pressure near the outer edge of the asteroid field the total amount of gas in the atmosphere would be be immense.
Another problem would be keeping the asteroids in their relative positions. If they are fee to move, their mutual gravity will relatively soon pull them together to make a single planet about the mass of Earth.
In a science fiction story with a rather low hardness score, tractor beams, which attract matter, and pressor beams, which push matter away, can be used to lock each one of the billions of asteroids in position relative to the others.
Of course each of the tractor and pressor beams would be generated by machinery which would use energy generated by giant fusion power generators. That machinery would have to be tended and maintained by hordes of service robots - or by demons in a fantasy story.
Another possibility is a shellworld. There are several types of hypothetical shellworlds. One type is:
A planet or a planetoid turned into series of concentric matryoshka doll-like layers supported by massive pillars.1 A shellworld of this type features prominently in Iain M. Banks' novel Matter.
So I can picture your asteroid field consisting of countless thousands of layers of geodesic spheres, each with an asteroid where ever several beams come together, and with other, vertical beams, supporting each of the asteroid vertically.
That would require less energy for tractor and pressor beams being on permanently and constantly using energy. Of course it would require very strong materials. Possibly if carbon nanofibers could be produced in the right size and quantity they could make the beams.
At most of the thousands of levels there would not be solid shells but merely beams between the asteroids. But there could be a shell above the outermost asteroids to hold the atmosphere in, and another shell below the level of inhabitable asteroids, to keep the atmosphere from falling to the center of the asteroid field, and thus immensely reducing the total amount of atmosphere needed.
Or there could be only one level of asteroids, connected by tractor or pressor beams or by beams of super strong materials, with an outer shell above the asteroids to keep the atmosphere in, and an inner shell below the asteroids to keep the atmosphere from falling.
With only one level of asteroids, instead of countless thousands, an asteroid field of the same size would contain only a tiny fraction of the total number and mass of asteroids as before. Or with the same number and mass of asteroids the hollow field of asteroids could be much larger.
And possibly the asteroid field with one layer could be in a cylindrical shape. If the cylinder rotated at the proper speed the forces on the connecting beams pulling out could balance the forces pulling inward, reducing the stress on the energy beams or solid structural beams holding the asteroid field together.
Thus the asteroid might resemble a giant O'Neil space habitat but with spaces between the parts.
I note that if there are solid beams of matter between the different asteroids they could contain roads and people might not need to fly between asteroids.
So I have done my best to think of ways to make your asteroid field plausible in a science fiction story, and thus to reduce the amount of magic needed for it in a fantasy story.