Found the issue. This is a different issue and is unrelated to the crash. There is a race condition when related collections are updating each other's fields. This causes a race condition that sometimes leads to deadlock. That's why it works sometimes on restart. We are working on a fix.