>>16833244 (OP)
im almost 99% sure this would be more stable if the sun wasn't flying through the middle of it all the time
the main issue you have with this idea is entropy. gravity is an all reaching force, each side of the torus is pulling on the other, causing a net force to coalesce into the center. I think in theory a structure like this is perfectly feasible (especially without the random moons and sun being right next to it) but the planet would need an extremely dense core, like fucking neutron star levels of density, and even then theres no way the center wouldn't accumulate tons of water vapor and light gasses, it would 100% be a cloud.
I guess you could build this but make it retardedly huge, like, give it the diameter of plutos orbit. at that scale the torus would be so large that none of the forces from the opposing side would have a meaningful impact.