Engine dies when hot, in gear

Easy diagnostic trick. Line up as many wooden clothespins on the fuel line as you can fit on it. Start it up and drive it. If it doesn't stall then it's the fuel turning to vapor and the clothespins are acting like a heat sink and preventing it. You'll want to insulate or reroute the fuel line.