Took me an hour to figure this iOS crash out, posting the solution in case it helps.
You might have a different value other than count after NSConcreteNotification in your crash.
I was crashing on accessing an array.count, which is why it's count in my case:
@objc fileprivate func loadParts(constraints: [NSLayoutConstraint]? = nil) {
assert(Thread.current.isMainThread)
var constraints = constraints ?? [NSLayoutConstraint]()
...
let cCount = constraints.count
I could not for the life of me see how it could crash on constraints.count as the array is guaranteed to exist.