I'd wrapped masking tape around the frame rails when it was built up and with a chain in place, so I could see where I needed clearance. With it all stripped down, I cut a piece of 40mm square box section steel, and split in lengthways to get two pieces of C section.
I clamped a piece on the inside of the frame, parallel with the bracing added in a previous life, and marked it up for cutting.

