Is tension from the rack loosening the nut while riding? If so, maybe a second nut between the rack and clamp?
But it does look like it's just bending one side of the clamp rather than the whole clamp tightening evenly. Since it's welded, I assume on the front side, I'd try flipping the bolt...