Great info, thank you.
So if the connector contact is inadequate, the contact resistance is increased which leads to overheating due to high currents and the pin turns golden, which increases the pin diameter. This in turn ruins the connector of the EP801 motor-battery harness (BM-EN801), so that even if you clean the golden pin the contact will be too lose and the issue will return (the upper round hole here is the counterpart of the golden pin, notice how it's worn out and of larger diameter versus the other one):
View attachment 168931
Compare this to the earlier generation EP800 connector, which is still as good as new after 4 years of usage!
View attachment 168933
Therefore
in order to fix the shut down issue properly:
1) Order a new motor-battery harness (BM-EN801), don't install it yet !
2) Carefully clean the right upper pin of the motor-battery plug with a contact cleaner and 10 minutes of brushing with an modern electric toothbrush that has the new micro vibration technology (such as Braun iO series).
Before and after cleaning:
View attachment 168932View attachment 168930
3) Install the new motor-battery harness (gotta remove the motor for this, no need to remove cranks).
4)
Use a piece of foam as shown in this video to keep the motor connector fully secured in the future, which prevents the issue returning after a few months.
5) (Optional) Send some strongly-worded feedback to Shimano how they managed to ruin a perfectly robust connector of EP800 in their updated EP801 motor...