Did you ever get an answer to this? I've been having the same problem. If I comment out the following it does not crash.
.backgroundTask(.appRefresh("backgroundTask")){ //run task in background }