How to troubleshoot a lockup/freeze
There are apps that let you look at the system log, like CatLog.

What I would do is start logging before you charge it at night and then take a look at the result in the morning. The log will probably be staggering but the errors should show up in red.