Hi @Mouadh
as @AndyA mentioned I would expect some power issues or something else related to the power/ IO lines. The module hang-up could be caused by power outage / extra noise in reset pin or something else that can cause some GPIO hang-up in some strange state. I have seen similar behavior with different MCUs in mobile robots. To be more specific: we get antistatic dischargers between robot wheels and PCB - it was fixed by improving PCB layout & adding some extra shielding.
The most unexpected stuff is the configuration loss because the configuration is guarded by CRC in the environment - this is 100% well working. Each time you change the configuration it calculates new CRC and save the environment into the FLASH + stores its CRC. After reboot it loads the environment and check the CRC and this is not working for you. Again I would expect that there is some extra noise in power lines to this didnt work well at chip level.
Cheers
JK