Okay the F10 is a runaway temperature error, (F10 only) Check *RTD Sensor Probe & replace if necessary. If oven is overheating, disconnect power. If oven continues to overheat when the power is reapplied, replace EOC. Severe overheating may require the entire oven to be replaced should damage be extensive.
You would need to check the resistance on your sensor to address this issue the temperatures above that the sensor is that and the ohms at it should be our on that chart above, the large flame may be causing this issue because the sensor is on the back wall near the top so a large flame would overheat the sensor quickly so possibly there is no issue with the sensor it's just sensing an overheat, this is the oven temperature sensor, as far as the large flame your orifice on your broil needs to be adjusted, you would need to turn it in to bring the flame down, now on to the light stays on that probably has something to do with the door switch may be laying the oven down on its back possibly did some damage to the door switch, you have so many problems it's hard to go through it all but those the basics of what's going on with yours I think what you adjust the orifice on the broiler the oven will work fine you may need to replace the door switch however to fix the light problem, I'm giving you a link to all the parts so you can take a look at them and order what you need, here's the link, http://www.repairclinic.com/Shop-For-Parts?s=t-GLGFZ386FC-%3d%3de I hope this is into overwhelming if you feel it is you may want to call a service tech in to adjust the orifice for you, thanks and best wishes, Bryan