Well, the crash happens when I load the wallet after a restart. Not upon receiving coins. But that means I have to create a new wallet, import the keys, and rescan the chain every time I shut down the node.