I would clean it up , drill stop the cracks, weld it up, and touch up the 4 mounting holes with a carbide burr. cleanup the welds until almost completely flat. Then I would fashion a form fitting slightly longer plate to go inside the frame rail(s). Once I got ready to do the final upfit on the plate, brkt hholes drilled, ends tapered for and aft etc I would drill/prep the actual frame rail for several rosette/plug welds mainly fore and aft of the bracket holes(8 total), maybe a few through the center on the rail itself. . Since the piece is fully prepped now bolt it in with the bracket mounting holes. Weld the perimeter from the inside the the rail and the rosette's from the outside.
Use the same thickmess or slightly thicker material. Mill scale removed. No need to try and weld a 3/8 thick piece in there.
Welding, Yeah. 220v machine, but if you don't have the frame fixtured and or supported somehow you have to watch the heat. One inch stitch, walk away and let it cool, skip around.
For the 8 bolt's and disconnecting the harness, taking the bed off is going to make the rest of it much easier to do and you can work like a human being with everything within arms reach. Set up much like 94k3500's pic supported under the cab. Do not jack one rail up with the frame all twisted and go to welding.
I would probably hammer weld those cracks.