Car wont start unless door is open

There is also this bulky black wire that appears to have gotten very hot at some point.
Could be the alternator output wire. That supplies power from the alternator to everything when the engine is running. If there are a lot of electrical items running at the same time and/or the battery is recharging at high rate, any weak spote in that line can overheat.

labelled 'R6' in the drawing
upload_2022-3-1_20-43-12.png