Sorry,
@Yz450f, it hurts to see bikes break like this.
Whether the frames or swing arms are boxed or not boxed determines flex characteristics, not the maximum strength. You just need to make the aluminum thick enough. KTMs use die-cast open lattice, or open-grid, aluminum swing arms on their street and heavy adventure bikes with no issues.
I had to re-weld my 1995 CR-250 swing arm welds on both sides three times after they cracked one after another. This was back in the 90's. Once plenty of extra aluminum was added, the welds didn't break again. Those were welds though... You can re-weld and reinforce your swing arm, but for the frame, you'd need to add gussets and reinforcements.
If you are planning to re-weld the frame and the swing arm, more power to you. If not, here are some project ideas that I just saw today