How to prevent my hub body from freezing?
Winterize your freehub body.  This kind of failure is common in colder temperatures and a hub acting like this should not be ridden.  In addition to the safety issue, you can destroy your freehub with partial engagement.  The freehub needs to be disassembled, the factory grease cleaned out of it and regreased with a winter weight grease.