Kevin
It looks to me like the angle strip has pulled loose from the bed side. It would have been spot welded on from the factory.
Unfortunately, without repainting, the only solution I see is to drill holes and put some bolts in to secure it to the bedside. Is this an original bedside that you've restored and painted, or an aftermarket one that came with the angle strip attached? If the latter, I would contact the supplier about it.
Good point on the weld, I had forgotten that was how the angle strip is secured. I bought the truck already restored and I am not sure it the angle strips are original or aftermarket.
Thanks for the feedback.
Kevin