Doing some testing a while back i reloaded the original expessif software. Iirc their formatter worked ok. Maybe you could format and then reload the latest basic?process worked for me, though i didnt have your level of issues... didnt know the forum supported pm - could you point me in the right direction please?
All good fun....