Assuming it was full to the bottom of the fuel filler line, 0.5gal is a lot. Certainly more than that line holds.A new gasket might help, but this was pushing fuel over the top of the filler neck and I’d not filled it that much.
Fuel expansion? Difficult to accept. Gasoline does expand when it gets warm. A 15° F rise in temp will increase volume by about 1%. If we assume the fuel came out of the tank at, say 65° F and then rapidly got to 90° F, that would be about 2% more volume.
A stock fj55 fuel tank is 23.8 gal. Two percent more volume would be another 0.5 gal, max.
I had the same issue one hot day when I topped the tanks off on all my vehicles as we were leaving the US for several months. I got home with the pig (3 miles) and tried to get a can of Seafoam in the tank only to be met with gasoline coming out of the neck. Let it idle outside the garage with the cap off for over an hour and I’m guessing a good quart or more of gas came out. Never did get the Seafoam in on that trip.
Edit: Assuming I did this quick calc correctly, a 2” ID line, 18” long holds 1/4 gal.