Detect some cases of corruption at open-time and improve error messages ...

...for corruption detection in runtime